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

com.checkout.apm.previous.klarna.OrderCaptureRequest Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
package com.checkout.apm.previous.klarna;

import com.checkout.common.PaymentSourceType;
import com.checkout.common.ShippingInfo;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@Builder
public final class OrderCaptureRequest {

    private final PaymentSourceType type = PaymentSourceType.KLARNA;

    private Long amount;

    private String reference;

    private Map metadata;

    private Klarna klarna;

    @SerializedName("shipping_info")
    private ShippingInfo shippingInfo;

    @SerializedName("shipping_delay")
    private Long shippingDelay;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Klarna {

        private String description;

        private List products;

        @SerializedName("shipping_info")
        private List shippingInfo;

        @SerializedName("shipping_delay")
        private Integer shippingDelay;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy