io.sphere.sdk.payments.PaymentImpl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.payments;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.types.CustomFields;
import java.lang.Deprecated;
import java.lang.Long;
import java.lang.String;
import java.time.ZonedDateTime;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.money.MonetaryAmount;
@Generated(
value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
comments = "Generated from: io.sphere.sdk.payments.Payment"
)
final class PaymentImpl extends Base implements Payment {
@Nullable
private MonetaryAmount amountAuthorized;
@Nullable
private MonetaryAmount amountPaid;
private MonetaryAmount amountPlanned;
@Nullable
private MonetaryAmount amountRefunded;
@Nullable
private String anonymousId;
@Nullable
private ZonedDateTime authorizedUntil;
private ZonedDateTime createdAt;
@Nullable
private CustomFields custom;
@Nullable
private Reference customer;
@Nullable
private String externalId;
private String id;
@Nullable
private String interfaceId;
private List interfaceInteractions;
@Nullable
private String key;
private ZonedDateTime lastModifiedAt;
private PaymentMethodInfo paymentMethodInfo;
private PaymentStatus paymentStatus;
private List transactions;
private Long version;
@JsonCreator
PaymentImpl(@Nullable final MonetaryAmount amountAuthorized,
@Nullable final MonetaryAmount amountPaid, final MonetaryAmount amountPlanned,
@Nullable final MonetaryAmount amountRefunded, @Nullable final String anonymousId,
@Nullable final ZonedDateTime authorizedUntil, final ZonedDateTime createdAt,
@Nullable final CustomFields custom, @Nullable final Reference customer,
@Nullable final String externalId, final String id, @Nullable final String interfaceId,
final List interfaceInteractions, @Nullable final String key,
final ZonedDateTime lastModifiedAt, final PaymentMethodInfo paymentMethodInfo,
final PaymentStatus paymentStatus, final List transactions, final Long version) {
this.amountAuthorized = amountAuthorized;
this.amountPaid = amountPaid;
this.amountPlanned = amountPlanned;
this.amountRefunded = amountRefunded;
this.anonymousId = anonymousId;
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.key = key;
this.lastModifiedAt = lastModifiedAt;
this.paymentMethodInfo = paymentMethodInfo;
this.paymentStatus = paymentStatus;
this.transactions = transactions;
this.version = version;
}
/**
*
* @deprecated This method will be removed with the next major SDK update.
*/
@Nullable
@Deprecated
public MonetaryAmount getAmountAuthorized() {
return amountAuthorized;
}
/**
*
* @deprecated This method will be removed with the next major SDK update.
*/
@Nullable
@Deprecated
public MonetaryAmount getAmountPaid() {
return amountPaid;
}
public MonetaryAmount getAmountPlanned() {
return amountPlanned;
}
/**
*
* @deprecated This method will be removed with the next major SDK update.
*/
@Nullable
@Deprecated
public MonetaryAmount getAmountRefunded() {
return amountRefunded;
}
@Nullable
public String getAnonymousId() {
return anonymousId;
}
/**
*
* @deprecated This method will be removed with the next major SDK update.
*/
@Nullable
@Deprecated
public ZonedDateTime getAuthorizedUntil() {
return authorizedUntil;
}
public ZonedDateTime getCreatedAt() {
return createdAt;
}
@Nullable
public CustomFields getCustom() {
return custom;
}
@Nullable
public Reference getCustomer() {
return customer;
}
/**
*
* @deprecated This method will be removed with the next major SDK update.
*/
@Nullable
@Deprecated
public String getExternalId() {
return externalId;
}
public String getId() {
return id;
}
@Nullable
public String getInterfaceId() {
return interfaceId;
}
public List getInterfaceInteractions() {
return interfaceInteractions;
}
@Nullable
public String getKey() {
return key;
}
public ZonedDateTime getLastModifiedAt() {
return lastModifiedAt;
}
public PaymentMethodInfo getPaymentMethodInfo() {
return paymentMethodInfo;
}
public PaymentStatus getPaymentStatus() {
return paymentStatus;
}
public List getTransactions() {
return transactions;
}
public Long getVersion() {
return version;
}
}