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

io.sphere.sdk.orders.OrderFromCartDraftImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.orders;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;

import javax.annotation.Nullable;

final class OrderFromCartDraftImpl extends Base implements OrderFromCartDraft {
    private final String id;
    private final Long version;
    @Nullable
    private final String orderNumber;
    @Nullable
    private final PaymentState  paymentState;

    @JsonCreator
    OrderFromCartDraftImpl(final String id, final Long version, @Nullable final String orderNumber, @Nullable final PaymentState paymentState) {
        this.id = id;
        this.version = version;
        this.orderNumber = orderNumber;
        this.paymentState = paymentState;
    }

    @Override
    public String getId() {
        return id;
    }

    @Override
    public Long getVersion() {
        return version;
    }

    @Override
    @Nullable
    public String getOrderNumber() {
        return orderNumber;
    }

    @Override
    @Nullable
    public PaymentState getPaymentState() {
        return paymentState;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy