io.sphere.sdk.payments.PaymentImpl Maven / Gradle / Ivy
/*
This class has been generated by class io.sphere.sdk.annotations.processors.ResourceValueAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.ResourceValue.
in the source class io.sphere.sdk.payments.Payment.
*/
package io.sphere.sdk.payments;
import javax.annotation.Nullable;
import io.sphere.sdk.models.*;
import java.util.*;
import io.sphere.sdk.utils.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonCreator;
final class PaymentImpl extends io.sphere.sdk.models.Base implements Payment {
@Nullable()
private final io.sphere.sdk.models.Reference customer;
@Nullable()
private final java.lang.String externalId;
@Nullable()
private final java.lang.String interfaceId;
private final javax.money.MonetaryAmount amountPlanned;
@Nullable()
private final javax.money.MonetaryAmount amountAuthorized;
@Nullable()
private final java.time.ZonedDateTime authorizedUntil;
@Nullable()
private final javax.money.MonetaryAmount amountPaid;
@Nullable()
private final javax.money.MonetaryAmount amountRefunded;
private final io.sphere.sdk.payments.PaymentMethodInfo paymentMethodInfo;
@Nullable()
private final io.sphere.sdk.types.CustomFields custom;
private final io.sphere.sdk.payments.PaymentStatus paymentStatus;
private final java.util.List transactions;
private final java.util.List interfaceInteractions;
private final java.lang.String id;
private final java.lang.Long version;
private final java.time.ZonedDateTime createdAt;
private final java.time.ZonedDateTime lastModifiedAt;
@JsonCreator()
PaymentImpl(final javax.money.MonetaryAmount amountAuthorized, final javax.money.MonetaryAmount amountPaid, final javax.money.MonetaryAmount amountPlanned, final javax.money.MonetaryAmount amountRefunded, final java.time.ZonedDateTime authorizedUntil, final java.time.ZonedDateTime createdAt, final io.sphere.sdk.types.CustomFields custom, final io.sphere.sdk.models.Reference customer, final java.lang.String externalId, final java.lang.String id, final java.lang.String interfaceId, final java.util.List interfaceInteractions, final java.time.ZonedDateTime lastModifiedAt, final io.sphere.sdk.payments.PaymentMethodInfo paymentMethodInfo, final io.sphere.sdk.payments.PaymentStatus paymentStatus, final java.util.List transactions, final java.lang.Long version) {
this.amountAuthorized = amountAuthorized;
this.amountPaid = amountPaid;
this.amountPlanned = amountPlanned;
this.amountRefunded = amountRefunded;
this.authorizedUntil = authorizedUntil;
this.createdAt = createdAt;
this.custom = custom;
this.customer = customer;
this.externalId = externalId;
this.id = id;
this.interfaceId = interfaceId;
this.interfaceInteractions = interfaceInteractions;
this.lastModifiedAt = lastModifiedAt;
this.paymentMethodInfo = paymentMethodInfo;
this.paymentStatus = paymentStatus;
this.transactions = transactions;
this.version = version;
}
@Nullable()
public javax.money.MonetaryAmount getAmountAuthorized() {
return amountAuthorized;
}
@Nullable()
public javax.money.MonetaryAmount getAmountPaid() {
return amountPaid;
}
public javax.money.MonetaryAmount getAmountPlanned() {
return amountPlanned;
}
@Nullable()
public javax.money.MonetaryAmount getAmountRefunded() {
return amountRefunded;
}
@Nullable()
public java.time.ZonedDateTime getAuthorizedUntil() {
return authorizedUntil;
}
public java.time.ZonedDateTime getCreatedAt() {
return createdAt;
}
@Nullable()
public io.sphere.sdk.types.CustomFields getCustom() {
return custom;
}
@Nullable()
public io.sphere.sdk.models.Reference getCustomer() {
return customer;
}
@Nullable()
public java.lang.String getExternalId() {
return externalId;
}
public java.lang.String getId() {
return id;
}
@Nullable()
public java.lang.String getInterfaceId() {
return interfaceId;
}
public java.util.List getInterfaceInteractions() {
return interfaceInteractions;
}
public java.time.ZonedDateTime getLastModifiedAt() {
return lastModifiedAt;
}
public io.sphere.sdk.payments.PaymentMethodInfo getPaymentMethodInfo() {
return paymentMethodInfo;
}
public io.sphere.sdk.payments.PaymentStatus getPaymentStatus() {
return paymentStatus;
}
public java.util.List getTransactions() {
return transactions;
}
public java.lang.Long getVersion() {
return version;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy