package fr.titionfire.ffsaf.rest.client.dto;

import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@RegisterForReflection
public class CheckoutIntentsRequest {
    public int totalAmount;
    public int initialAmount;
    public String itemName;
    public String backUrl;
    public String errorUrl;
    public String returnUrl;
    public boolean containsDonation;
    public Payer payer;
    public CheckoutMetadata metadata;

    @Data
    @AllArgsConstructor
    @RegisterForReflection
    public static class Payer {
        public String firstName;
        public String lastName;
        public String email;
    }
}
