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

io.sphere.sdk.customers.CustomerSignInResultImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.customers;

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

import javax.annotation.Nullable;

class CustomerSignInResultImpl extends Base implements CustomerSignInResult {
    private final Customer customer;
    @Nullable
    private final Cart cart;

    @JsonCreator
    CustomerSignInResultImpl(final Customer customer, @Nullable final Cart cart) {
        this.customer = customer;
        this.cart = cart;
    }

    @Override
    public Customer getCustomer() {
        return customer;
    }

    @Override
    @Nullable
    public Cart getCart() {
        return cart;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy