content: /*
   * Copyright 2018-2024 adorsys GmbH & Co KG
   *
   * This program is free software: you can redistribute it and/or modify it
   * under the terms of the GNU Affero General Public License as published
   * by the Free Software Foundation, either version 3 of the License, or (at
   * your option) any later version. This program is distributed in the hope that
   * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
   * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   * See the GNU Affero General Public License for more details.
   *
   * You should have received a copy of the GNU Affero General Public License
   * along with this program. If not, see https://www.gnu.org/licenses/.
   *
   * This project is also available under a separate commercial license. You can
   * contact us at sales@adorsys.com.
   */
  
  package de.adorsys.psd2.xs2a.domain.account;
  
  import com.fasterxml.jackson.annotation.JsonIgnore;
  import com.fasterxml.jackson.annotation.JsonProperty;
  import de.adorsys.psd2.xs2a.core.pis.Xs2aAmount;
  import de.adorsys.psd2.xs2a.domain.CashAccountType;
  import de.adorsys.psd2.xs2a.domain.Links;
  import de.adorsys.psd2.xs2a.domain.Xs2aBalance;
  import lombok.Data;
  
  import jakarta.validation.constraints.NotNull;
  import jakarta.validation.constraints.Size;
  import java.util.Currency;
  import java.util.List;
  
  @Data
  public class Xs2aCardAccountDetails {
      @JsonIgnore
      private final String aspspAccountId;
  
      @Size(max = 35)
      @NotNull
      private final String resourceId;
  
      @Size(max = 35)
      private final String maskedPan;
  
      @NotNull
      private final Currency currency;
  
      private final String name;
  
      private final String displayName;
  
      @Size(max = 35)
      private final String product;
  
      private final CashAccountType cashAccountType;
  
      private final AccountStatus accountStatus;
  
      private final Xs2aUsageType usageType;
  
      private final String details;
  
      private final List<Xs2aBalance> balances;
  
      private final Xs2aAmount creditLimit;
  
      private final String ownerName;
  
      private final Boolean debitAccounting;
  
      @JsonProperty("_links")
      private Links links = new Links();
  }
  