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

com.logicommerce.sdk.builders.order.OrderAdditionalInformationBuilder Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.logicommerce.sdk.builders.order;

import com.logicommerce.sdk.models.order.OrderAdditionalInformation;
import com.logicommerce.sdk.models.order.implementations.OrderAdditionalInformationImpl;

/**
 * 

OrderAdditionalInformationBuilder class.

* * @author Logicommerce * @since 1.0.16 */ public class OrderAdditionalInformationBuilder { protected T parentBuilder; protected String name; protected String value; /** *

Constructor for OrderAdditionalInformationBuilder.

*/ public OrderAdditionalInformationBuilder() { } /** *

Constructor for OrderAdditionalInformationBuilder.

* * @param parentBuilder a T object */ public OrderAdditionalInformationBuilder(T parentBuilder) { this(); this.parentBuilder = parentBuilder; } /** *

name.

* * @param name a {@link java.lang.String} object * @return a {@link com.logicommerce.sdk.builders.order.OrderAdditionalInformationBuilder} object */ public OrderAdditionalInformationBuilder name(String name) { this.name = name; return this; } /** *

value.

* * @param value a {@link java.lang.String} object * @return a {@link com.logicommerce.sdk.builders.order.OrderAdditionalInformationBuilder} object */ public OrderAdditionalInformationBuilder value(String value) { this.value = value; return this; } /** *

build.

* * @return a {@link com.logicommerce.sdk.models.order.OrderAdditionalInformation} object */ public OrderAdditionalInformation build() { OrderAdditionalInformationImpl information = new OrderAdditionalInformationImpl(); information.setName(name); information.setValue(value); return information; } /** *

done.

* * @return a T object */ public T done() { return parentBuilder; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy