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

io.sphere.sdk.customers.CustomerTokenImpl 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.models.Base;

import java.time.ZonedDateTime;

class CustomerTokenImpl extends Base implements CustomerToken {
    private final String id;
    private final String customerId;
    private final ZonedDateTime createdAt;
    private final ZonedDateTime lastModifiedAt;
    private final String value;

    @JsonCreator
    public CustomerTokenImpl(final String id, final String customerId, final ZonedDateTime createdAt, final ZonedDateTime lastModifiedAt, final String value) {
        this.id = id;
        this.customerId = customerId;
        this.createdAt = createdAt;
        this.lastModifiedAt = lastModifiedAt;
        this.value = value;
    }

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

    @Override
    public String getCustomerId() {
        return customerId;
    }

    @Override
    public ZonedDateTime getCreatedAt() {
        return createdAt;
    }

    @Override
    public ZonedDateTime getLastModifiedAt() {
        return lastModifiedAt;
    }

    @Override
    public String getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy