Class PaymentTransactionServiceProperties
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.PaymentTransactionServiceProperties
@ConfigurationProperties("broadleaf.paymenttransaction.service")
public class PaymentTransactionServiceProperties
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe amount of time payments for anonymous users should be considered valid.The amount of time that a payment lock is held, before it expires.booleanWhether or not to allow anonymous customers to read the payments with theCUSTOMER_MUTABILITY_BLOCKEDrestriction.booleanDeclares whether the owning entity's payments should all be archived when the anonymous payment TTL has expired for any one of the owning entity's payments.booleanWhether or not to expire payments for anonymous users that have exceeded thegetAnonymousPaymentTtl()duration.voidsetAnonymousCustomerCanReadImmutablePayments(boolean anonymousCustomerCanReadImmutablePayments) Whether or not to allow anonymous customers to read the payments with theCUSTOMER_MUTABILITY_BLOCKEDrestriction.voidsetAnonymousPaymentTtl(Duration anonymousPaymentTtl) The amount of time payments for anonymous users should be considered valid.voidsetAnonymousPaymentTtlArchiveAllOwningEntityPayments(boolean anonymousPaymentTtlArchiveAllOwningEntityPayments) Declares whether the owning entity's payments should all be archived when the anonymous payment TTL has expired for any one of the owning entity's payments.voidsetAnonymousPaymentTtlEnabled(boolean anonymousPaymentTtlEnabled) Whether or not to expire payments for anonymous users that have exceeded thegetAnonymousPaymentTtl()duration.voidsetPaymentLockTtl(Duration paymentLockTtl) The amount of time that a payment lock is held, before it expires.
-
Constructor Details
-
PaymentTransactionServiceProperties
public PaymentTransactionServiceProperties()
-
-
Method Details
-
getPaymentLockTtl
The amount of time that a payment lock is held, before it expires. -
isAnonymousPaymentTtlEnabled
public boolean isAnonymousPaymentTtlEnabled()Whether or not to expire payments for anonymous users that have exceeded thegetAnonymousPaymentTtl()duration. -
getAnonymousPaymentTtl
The amount of time payments for anonymous users should be considered valid. -
isAnonymousCustomerCanReadImmutablePayments
public boolean isAnonymousCustomerCanReadImmutablePayments()Whether or not to allow anonymous customers to read the payments with theCUSTOMER_MUTABILITY_BLOCKEDrestriction. Defaults to false. -
isAnonymousPaymentTtlArchiveAllOwningEntityPayments
public boolean isAnonymousPaymentTtlArchiveAllOwningEntityPayments()Declares whether the owning entity's payments should all be archived when the anonymous payment TTL has expired for any one of the owning entity's payments. This additional archival is done to keep the lifecycle of the owning entity's payments in sync for UX purposes. This is done with the assumption that the owning entity's payments are associated to the same anonymous user (generally a very safe assumption). -
setPaymentLockTtl
The amount of time that a payment lock is held, before it expires. -
setAnonymousPaymentTtlEnabled
public void setAnonymousPaymentTtlEnabled(boolean anonymousPaymentTtlEnabled) Whether or not to expire payments for anonymous users that have exceeded thegetAnonymousPaymentTtl()duration. -
setAnonymousPaymentTtl
The amount of time payments for anonymous users should be considered valid. -
setAnonymousCustomerCanReadImmutablePayments
public void setAnonymousCustomerCanReadImmutablePayments(boolean anonymousCustomerCanReadImmutablePayments) Whether or not to allow anonymous customers to read the payments with theCUSTOMER_MUTABILITY_BLOCKEDrestriction. Defaults to false. -
setAnonymousPaymentTtlArchiveAllOwningEntityPayments
public void setAnonymousPaymentTtlArchiveAllOwningEntityPayments(boolean anonymousPaymentTtlArchiveAllOwningEntityPayments) Declares whether the owning entity's payments should all be archived when the anonymous payment TTL has expired for any one of the owning entity's payments. This additional archival is done to keep the lifecycle of the owning entity's payments in sync for UX purposes. This is done with the assumption that the owning entity's payments are associated to the same anonymous user (generally a very safe assumption).
-