Package io.mailtrap.api.companyinfo
Class CompanyInfoImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.companyinfo.CompanyInfoImpl
- All Implemented Interfaces:
CompanyInfo
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCompanyInfo(long sendingDomainId, CreateCompanyInfoRequest request) Create the company info for a sending domain.getCompanyInfo(long sendingDomainId) Get the company info associated with a sending domainupdateCompanyInfo(long sendingDomainId, UpdateCompanyInfoRequest request) Update the company info for a sending domain
-
Constructor Details
-
CompanyInfoImpl
-
-
Method Details
-
getCompanyInfo
Description copied from interface:CompanyInfoGet the company info associated with a sending domain- Specified by:
getCompanyInfoin interfaceCompanyInfo- Parameters:
sendingDomainId- unique domain ID- Returns:
- company info of the sending domain
-
createCompanyInfo
public CompanyInfoResponse createCompanyInfo(long sendingDomainId, CreateCompanyInfoRequest request) Description copied from interface:CompanyInfoCreate the company info for a sending domain. Company info is required for domain compliance verification.- Specified by:
createCompanyInfoin interfaceCompanyInfo- Parameters:
sendingDomainId- unique domain IDrequest- request data- Returns:
- created company info
-
updateCompanyInfo
public CompanyInfoResponse updateCompanyInfo(long sendingDomainId, UpdateCompanyInfoRequest request) Description copied from interface:CompanyInfoUpdate the company info for a sending domain- Specified by:
updateCompanyInfoin interfaceCompanyInfo- Parameters:
sendingDomainId- unique domain IDrequest- request data, only the fields set are sent- Returns:
- updated company info
-