Class PaymentBuilder

java.lang.Object
com.commercetools.api.models.payment.PaymentBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<Payment>

public class PaymentBuilder extends Object implements io.vrap.rmf.base.client.Builder<Payment>
PaymentBuilder
Example to create an instance using the builder pattern

     Payment payment = Payment.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .amountPlanned(amountPlannedBuilder -> amountPlannedBuilder)
             .paymentMethodInfo(paymentMethodInfoBuilder -> paymentMethodInfoBuilder)
             .paymentStatus(paymentStatusBuilder -> paymentStatusBuilder)
             .plusTransactions(transactionsBuilder -> transactionsBuilder)
             .plusInterfaceInteractions(interfaceInteractionsBuilder -> interfaceInteractionsBuilder)
             .build()