All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ingenico.connect.gateway.sdk.java.webhooks.WebhooksHelperBuilder Maven / Gradle / Ivy

Go to download

SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API

There is a newer version: 6.47.0
Show newest version
package com.ingenico.connect.gateway.sdk.java.webhooks;

import com.ingenico.connect.gateway.sdk.java.Marshaller;

/**
 * Builder for a {@link WebhooksHelper} object.
 */
public class WebhooksHelperBuilder {

	private Marshaller marshaller;

	private SecretKeyStore secretKeyStore;

	/**
	 * Sets the {@link Marshaller} to use.
	 */
	public WebhooksHelperBuilder withMarshaller(Marshaller marshaller) {
		this.marshaller = marshaller;
		return this;
	}

	/**
	 * Sets the {@link SecretKeyStore} to use.
	 */
	public WebhooksHelperBuilder withSecretKeyStore(SecretKeyStore secretKeyStore) {
		this.secretKeyStore = secretKeyStore;
		return this;
	}

	/**
	 * Creates a fully initialized {@link WebhooksHelper} object.
	 *
	 * @throws IllegalArgumentException if not all required components are set
	 */
	public WebhooksHelper build() {
		return new WebhooksHelper(
				marshaller,
				secretKeyStore
		);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy