Package com.adyen.service.management
Class AndroidFilesCompanyLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.AndroidFilesCompanyLevelApi
-
public class AndroidFilesCompanyLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description AndroidFilesCompanyLevelApi(Client client)Android files - company level constructor inpackage.AndroidFilesCompanyLevelApi(Client client, String baseURL)Android files - company level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AndroidAppgetAndroidApp(String companyId, String id)Get Android appAndroidAppgetAndroidApp(String companyId, String id, RequestOptions requestOptions)Get Android appAndroidAppsResponselistAndroidApps(String companyId)Get a list of Android appsAndroidAppsResponselistAndroidApps(String companyId, Integer pageNumber, Integer pageSize, String packageName, Integer versionCode, RequestOptions requestOptions)Get a list of Android appsAndroidCertificatesResponselistAndroidCertificates(String companyId)Get a list of Android certificatesAndroidCertificatesResponselistAndroidCertificates(String companyId, Integer pageNumber, Integer pageSize, String certificateName, RequestOptions requestOptions)Get a list of Android certificatesvoiduploadAndroidApp(String companyId)Upload Android AppvoiduploadAndroidApp(String companyId, RequestOptions requestOptions)Upload Android App-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AndroidFilesCompanyLevelApi
public AndroidFilesCompanyLevelApi(Client client)
Android files - company level constructor inpackage.- Parameters:
client-Client(required)
-
AndroidFilesCompanyLevelApi
public AndroidFilesCompanyLevelApi(Client client, String baseURL)
Android files - company level constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
listAndroidApps
public AndroidAppsResponse listAndroidApps(String companyId) throws ApiException, IOException
Get a list of Android apps- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
AndroidAppsResponse- Throws:
ApiException- if fails to make API callIOException
-
listAndroidApps
public AndroidAppsResponse listAndroidApps(String companyId, Integer pageNumber, Integer pageSize, String packageName, Integer versionCode, RequestOptions requestOptions) throws ApiException, IOException
Get a list of Android apps- Parameters:
companyId-StringThe unique identifier of the company account. (required)pageNumber-IntegerQuery: The number of the page to fetch. (optional)pageSize-IntegerQuery: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional)packageName-StringQuery: The package name that uniquely identifies the Android app. (optional)versionCode-IntegerQuery: The version number of the app. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AndroidAppsResponse- Throws:
ApiException- if fails to make API callIOException
-
getAndroidApp
public AndroidApp getAndroidApp(String companyId, String id) throws ApiException, IOException
Get Android app- Parameters:
companyId-StringThe unique identifier of the company account. (required)id-StringThe unique identifier of the app. (required)- Returns:
AndroidApp- Throws:
ApiException- if fails to make API callIOException
-
getAndroidApp
public AndroidApp getAndroidApp(String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException
Get Android app- Parameters:
companyId-StringThe unique identifier of the company account. (required)id-StringThe unique identifier of the app. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AndroidApp- Throws:
ApiException- if fails to make API callIOException
-
listAndroidCertificates
public AndroidCertificatesResponse listAndroidCertificates(String companyId) throws ApiException, IOException
Get a list of Android certificates- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Returns:
AndroidCertificatesResponse- Throws:
ApiException- if fails to make API callIOException
-
listAndroidCertificates
public AndroidCertificatesResponse listAndroidCertificates(String companyId, Integer pageNumber, Integer pageSize, String certificateName, RequestOptions requestOptions) throws ApiException, IOException
Get a list of Android certificates- Parameters:
companyId-StringThe unique identifier of the company account. (required)pageNumber-IntegerQuery: The number of the page to fetch. (optional)pageSize-IntegerQuery: The number of items to have on a page, maximum 100. The default is 20 items on a page. (optional)certificateName-StringQuery: The name of the certificate. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
AndroidCertificatesResponse- Throws:
ApiException- if fails to make API callIOException
-
uploadAndroidApp
public void uploadAndroidApp(String companyId) throws ApiException, IOException
Upload Android App- Parameters:
companyId-StringThe unique identifier of the company account. (required)- Throws:
ApiException- if fails to make API callIOException
-
uploadAndroidApp
public void uploadAndroidApp(String companyId, RequestOptions requestOptions) throws ApiException, IOException
Upload Android App- Parameters:
companyId-StringThe unique identifier of the company account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
-