All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.stripe.service.ApplePayDomainService Maven / Gradle / Ivy
// File generated from our OpenAPI spec
package com.stripe.service;
import com.google.gson.reflect.TypeToken;
import com.stripe.exception.StripeException;
import com.stripe.model.ApplePayDomain;
import com.stripe.model.StripeCollection;
import com.stripe.net.ApiMode;
import com.stripe.net.ApiRequest;
import com.stripe.net.ApiRequestParams;
import com.stripe.net.ApiResource;
import com.stripe.net.ApiService;
import com.stripe.net.BaseAddress;
import com.stripe.net.RequestOptions;
import com.stripe.net.StripeResponseGetter;
import com.stripe.param.ApplePayDomainCreateParams;
import com.stripe.param.ApplePayDomainListParams;
import com.stripe.param.ApplePayDomainRetrieveParams;
public final class ApplePayDomainService extends ApiService {
public ApplePayDomainService(StripeResponseGetter responseGetter) {
super(responseGetter);
}
/** Delete an apple pay domain. */
public ApplePayDomain delete(String domain) throws StripeException {
return delete(domain, (RequestOptions) null);
}
/** Delete an apple pay domain. */
public ApplePayDomain delete(String domain, RequestOptions options) throws StripeException {
String path = String.format("/v1/apple_pay/domains/%s", ApiResource.urlEncodeId(domain));
ApiRequest request =
new ApiRequest(
BaseAddress.API, ApiResource.RequestMethod.DELETE, path, null, options, ApiMode.V1);
return this.request(request, ApplePayDomain.class);
}
/** Retrieve an apple pay domain. */
public ApplePayDomain retrieve(String domain, ApplePayDomainRetrieveParams params)
throws StripeException {
return retrieve(domain, params, (RequestOptions) null);
}
/** Retrieve an apple pay domain. */
public ApplePayDomain retrieve(String domain, RequestOptions options) throws StripeException {
return retrieve(domain, (ApplePayDomainRetrieveParams) null, options);
}
/** Retrieve an apple pay domain. */
public ApplePayDomain retrieve(String domain) throws StripeException {
return retrieve(domain, (ApplePayDomainRetrieveParams) null, (RequestOptions) null);
}
/** Retrieve an apple pay domain. */
public ApplePayDomain retrieve(
String domain, ApplePayDomainRetrieveParams params, RequestOptions options)
throws StripeException {
String path = String.format("/v1/apple_pay/domains/%s", ApiResource.urlEncodeId(domain));
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options,
ApiMode.V1);
return this.request(request, ApplePayDomain.class);
}
/** List apple pay domains. */
public StripeCollection list(ApplePayDomainListParams params)
throws StripeException {
return list(params, (RequestOptions) null);
}
/** List apple pay domains. */
public StripeCollection list(RequestOptions options) throws StripeException {
return list((ApplePayDomainListParams) null, options);
}
/** List apple pay domains. */
public StripeCollection list() throws StripeException {
return list((ApplePayDomainListParams) null, (RequestOptions) null);
}
/** List apple pay domains. */
public StripeCollection list(
ApplePayDomainListParams params, RequestOptions options) throws StripeException {
String path = "/v1/apple_pay/domains";
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.GET,
path,
ApiRequestParams.paramsToMap(params),
options,
ApiMode.V1);
return this.request(request, new TypeToken>() {}.getType());
}
/** Create an apple pay domain. */
public ApplePayDomain create(ApplePayDomainCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
}
/** Create an apple pay domain. */
public ApplePayDomain create(ApplePayDomainCreateParams params, RequestOptions options)
throws StripeException {
String path = "/v1/apple_pay/domains";
ApiRequest request =
new ApiRequest(
BaseAddress.API,
ApiResource.RequestMethod.POST,
path,
ApiRequestParams.paramsToMap(params),
options,
ApiMode.V1);
return this.request(request, ApplePayDomain.class);
}
}