com.logicommerce.sdk.builders.order.ProviderPickupPointPickingDocumentDeliveryBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for developing Logicommerce plugins.
package com.logicommerce.sdk.builders.order;
import com.logicommerce.sdk.models.order.ProviderPickupPointPickingDocumentDelivery;
import com.logicommerce.sdk.models.order.implementations.ProviderPickupPointPickingDocumentDeliveryImpl;
/**
* ProviderPickupPointPickingDocumentDeliveryBuilder class.
*
* @author Logicommerce
* @since 1.3.8
*/
public class ProviderPickupPointPickingDocumentDeliveryBuilder {
private T parentBuilder;
private DocumentPickupPointProviderBuilder>
provider;
private DocumentProviderPickupPointBuilder>
pickupPoint;
/**
* Constructor for ProviderPickupPointPickingDocumentDeliveryBuilder.
*/
public ProviderPickupPointPickingDocumentDeliveryBuilder() {
this.provider = new DocumentPickupPointProviderBuilder<>(this);
this.pickupPoint = new DocumentProviderPickupPointBuilder<>(this);
}
/**
* Constructor for ProviderPickupPointPickingDocumentDeliveryBuilder.
*
* @param parentBuilder a T object
*/
public ProviderPickupPointPickingDocumentDeliveryBuilder(T parentBuilder) {
this();
this.parentBuilder = parentBuilder;
}
/**
* pickupPointProvider.
*
* @return a {@link com.logicommerce.sdk.builders.order.DocumentPickupPointProviderBuilder} object
*/
public DocumentPickupPointProviderBuilder>
pickupPointProvider() {
DocumentPickupPointProviderBuilder>
providerBuild = new DocumentPickupPointProviderBuilder<>(this);
this.provider = providerBuild;
return providerBuild;
}
/**
* destinationAddress.
*
* @return a {@link com.logicommerce.sdk.builders.order.DocumentProviderPickupPointBuilder} object
*/
public DocumentProviderPickupPointBuilder>
providerPickupPoint() {
DocumentProviderPickupPointBuilder>
pickupPointBuild = new DocumentProviderPickupPointBuilder<>(this);
this.pickupPoint = pickupPointBuild;
return pickupPointBuild;
}
/**
* build.
*
* @return a {@link com.logicommerce.sdk.models.order.ProviderPickupPointPickingDocumentDelivery} object
*/
public ProviderPickupPointPickingDocumentDelivery build() {
ProviderPickupPointPickingDocumentDeliveryImpl providerPickupPointPickingDocumentDelivery =
new ProviderPickupPointPickingDocumentDeliveryImpl();
providerPickupPointPickingDocumentDelivery.setProvider(provider.build());
providerPickupPointPickingDocumentDelivery.setPickupPoint(pickupPoint.build());
return providerPickupPointPickingDocumentDelivery;
}
/**
* done.
*
* @return a T object
*/
public T done() {
return parentBuilder;
}
}