package de.assecutor.votianlt.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * Editable company data of the system operator (admin). Used as issuer data
 * on system invoices to the users; falls back to the defaults hardcoded in
 * SystemInvoiceData as long as no profile has been saved.
 */
@Data
@Document(collection = "system_company_profile")
public class SystemCompanyProfile {

    @Id
    private String id;

    @Field("company_name")
    private String companyName;

    @Field("company_subtitle")
    private String companySubtitle;

    @Field("company_street")
    private String companyStreet;

    @Field("company_city")
    private String companyCity;

    @Field("company_phone")
    private String companyPhone;

    @Field("company_fax")
    private String companyFax;

    @Field("company_email")
    private String companyEmail;

    @Field("company_website")
    private String companyWebsite;

    @Field("sender_line")
    private String senderLine;

    @Field("payment_terms")
    private String paymentTerms;

    @Field("footer_text")
    private String footerText;
}
