Package com.flagright.api.types
Class NppDetails.Builder
- java.lang.Object
-
- com.flagright.api.types.NppDetails.Builder
-
- All Implemented Interfaces:
NppDetails._FinalStage,NppDetails.EndToEndIdStage
- Enclosing class:
- NppDetails
public static final class NppDetails.Builder extends java.lang.Object implements NppDetails.EndToEndIdStage, NppDetails._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NppDetails._FinalStageaccountNumber(java.lang.String accountNumber)Account numberNppDetails._FinalStageaccountNumber(java.util.Optional<java.lang.String> accountNumber)NppDetails._FinalStageaddress(Address address)NppDetails._FinalStageaddress(java.util.Optional<Address> address)NppDetails._FinalStagebankName(java.lang.String bankName)Name of the bank associated with the accountNppDetails._FinalStagebankName(java.util.Optional<java.lang.String> bankName)NppDetails._FinalStagebsb(java.lang.String bsb)BSB numberNppDetails._FinalStagebsb(java.util.Optional<java.lang.String> bsb)NppDetailsbuild()NppDetails._FinalStagecontactNumber(java.lang.String contactNumber)Contact numberNppDetails._FinalStagecontactNumber(java.util.Optional<java.lang.String> contactNumber)NppDetails._FinalStageemailId(java.lang.String emailId)NppDetails._FinalStageemailId(java.util.Optional<java.lang.String> emailId)NppDetails._FinalStageendToEndId(java.lang.String endToEndId)End to End IDNppDetails.Builderfrom(NppDetails other)NppDetails._FinalStageisInstant(java.lang.Boolean isInstant)Whether the payment is instantNppDetails._FinalStageisInstant(java.util.Optional<java.lang.Boolean> isInstant)NppDetails._FinalStagemessageFormat(java.lang.String messageFormat)Format of the NPP message (e.g., JSON, XML)NppDetails._FinalStagemessageFormat(java.util.Optional<java.lang.String> messageFormat)NppDetails._FinalStagename(ConsumerName name)NppDetails._FinalStagename(java.util.Optional<ConsumerName> name)NppDetails._FinalStageoskoReference(java.lang.String oskoReference)OSKO referenceNppDetails._FinalStageoskoReference(java.util.Optional<java.lang.String> oskoReference)NppDetails._FinalStagepayId(java.lang.String payId)PayIDNppDetails._FinalStagepayId(java.util.Optional<java.lang.String> payId)NppDetails._FinalStagepayIdReference(java.lang.String payIdReference)PayID referenceNppDetails._FinalStagepayIdReference(java.util.Optional<java.lang.String> payIdReference)NppDetails._FinalStageprocessingDate(java.lang.Double processingDate)Timestamp of the eventNppDetails._FinalStageprocessingDate(java.util.Optional<java.lang.Double> processingDate)NppDetails._FinalStagereferenceNumber(java.lang.String referenceNumber)Unique reference number for transaction reconciliationNppDetails._FinalStagereferenceNumber(java.util.Optional<java.lang.String> referenceNumber)NppDetails._FinalStageremittanceAdvice(java.lang.String remittanceAdvice)Remittance adviceNppDetails._FinalStageremittanceAdvice(java.util.Optional<java.lang.String> remittanceAdvice)NppDetails._FinalStageremittanceInformation(java.lang.String remittanceInformation)Remittance informationNppDetails._FinalStageremittanceInformation(java.util.Optional<java.lang.String> remittanceInformation)NppDetails._FinalStagesettlementDate(java.lang.Double settlementDate)Timestamp of the eventNppDetails._FinalStagesettlementDate(java.util.Optional<java.lang.Double> settlementDate)NppDetails._FinalStagetags(java.util.List<Tag> tags)Additional information that can be added via tagsNppDetails._FinalStagetags(java.util.Optional<java.util.List<Tag>> tags)NppDetails._FinalStagetraceNumber(java.lang.String traceNumber)Trace number for tracking the payment through the NPP systemNppDetails._FinalStagetraceNumber(java.util.Optional<java.lang.String> traceNumber)
-
-
-
Method Detail
-
from
public NppDetails.Builder from(NppDetails other)
- Specified by:
fromin interfaceNppDetails.EndToEndIdStage
-
endToEndId
public NppDetails._FinalStage endToEndId(@NotNull java.lang.String endToEndId)
End to End ID
- Specified by:
endToEndIdin interfaceNppDetails.EndToEndIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
address
public NppDetails._FinalStage address(Address address)
- Specified by:
addressin interfaceNppDetails._FinalStage
-
address
public NppDetails._FinalStage address(java.util.Optional<Address> address)
- Specified by:
addressin interfaceNppDetails._FinalStage
-
bankName
public NppDetails._FinalStage bankName(java.lang.String bankName)
Name of the bank associated with the account
- Specified by:
bankNamein interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
bankName
public NppDetails._FinalStage bankName(java.util.Optional<java.lang.String> bankName)
- Specified by:
bankNamein interfaceNppDetails._FinalStage
-
messageFormat
public NppDetails._FinalStage messageFormat(java.lang.String messageFormat)
Format of the NPP message (e.g., JSON, XML)
- Specified by:
messageFormatin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
messageFormat
public NppDetails._FinalStage messageFormat(java.util.Optional<java.lang.String> messageFormat)
- Specified by:
messageFormatin interfaceNppDetails._FinalStage
-
traceNumber
public NppDetails._FinalStage traceNumber(java.lang.String traceNumber)
Trace number for tracking the payment through the NPP system
- Specified by:
traceNumberin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceNumber
public NppDetails._FinalStage traceNumber(java.util.Optional<java.lang.String> traceNumber)
- Specified by:
traceNumberin interfaceNppDetails._FinalStage
-
referenceNumber
public NppDetails._FinalStage referenceNumber(java.lang.String referenceNumber)
Unique reference number for transaction reconciliation
- Specified by:
referenceNumberin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
referenceNumber
public NppDetails._FinalStage referenceNumber(java.util.Optional<java.lang.String> referenceNumber)
- Specified by:
referenceNumberin interfaceNppDetails._FinalStage
-
settlementDate
public NppDetails._FinalStage settlementDate(java.lang.Double settlementDate)
Timestamp of the event
- Specified by:
settlementDatein interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
settlementDate
public NppDetails._FinalStage settlementDate(java.util.Optional<java.lang.Double> settlementDate)
- Specified by:
settlementDatein interfaceNppDetails._FinalStage
-
processingDate
public NppDetails._FinalStage processingDate(java.lang.Double processingDate)
Timestamp of the event
- Specified by:
processingDatein interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
processingDate
public NppDetails._FinalStage processingDate(java.util.Optional<java.lang.Double> processingDate)
- Specified by:
processingDatein interfaceNppDetails._FinalStage
-
tags
public NppDetails._FinalStage tags(java.util.List<Tag> tags)
Additional information that can be added via tags
- Specified by:
tagsin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
public NppDetails._FinalStage tags(java.util.Optional<java.util.List<Tag>> tags)
- Specified by:
tagsin interfaceNppDetails._FinalStage
-
remittanceAdvice
public NppDetails._FinalStage remittanceAdvice(java.lang.String remittanceAdvice)
Remittance advice
- Specified by:
remittanceAdvicein interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remittanceAdvice
public NppDetails._FinalStage remittanceAdvice(java.util.Optional<java.lang.String> remittanceAdvice)
- Specified by:
remittanceAdvicein interfaceNppDetails._FinalStage
-
remittanceInformation
public NppDetails._FinalStage remittanceInformation(java.lang.String remittanceInformation)
Remittance information
- Specified by:
remittanceInformationin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
remittanceInformation
public NppDetails._FinalStage remittanceInformation(java.util.Optional<java.lang.String> remittanceInformation)
- Specified by:
remittanceInformationin interfaceNppDetails._FinalStage
-
isInstant
public NppDetails._FinalStage isInstant(java.lang.Boolean isInstant)
Whether the payment is instant
- Specified by:
isInstantin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
isInstant
public NppDetails._FinalStage isInstant(java.util.Optional<java.lang.Boolean> isInstant)
- Specified by:
isInstantin interfaceNppDetails._FinalStage
-
payIdReference
public NppDetails._FinalStage payIdReference(java.lang.String payIdReference)
PayID reference
- Specified by:
payIdReferencein interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
payIdReference
public NppDetails._FinalStage payIdReference(java.util.Optional<java.lang.String> payIdReference)
- Specified by:
payIdReferencein interfaceNppDetails._FinalStage
-
oskoReference
public NppDetails._FinalStage oskoReference(java.lang.String oskoReference)
OSKO reference
- Specified by:
oskoReferencein interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
oskoReference
public NppDetails._FinalStage oskoReference(java.util.Optional<java.lang.String> oskoReference)
- Specified by:
oskoReferencein interfaceNppDetails._FinalStage
-
payId
public NppDetails._FinalStage payId(java.lang.String payId)
PayID
- Specified by:
payIdin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
payId
public NppDetails._FinalStage payId(java.util.Optional<java.lang.String> payId)
- Specified by:
payIdin interfaceNppDetails._FinalStage
-
bsb
public NppDetails._FinalStage bsb(java.lang.String bsb)
BSB number
- Specified by:
bsbin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
bsb
public NppDetails._FinalStage bsb(java.util.Optional<java.lang.String> bsb)
- Specified by:
bsbin interfaceNppDetails._FinalStage
-
contactNumber
public NppDetails._FinalStage contactNumber(java.lang.String contactNumber)
Contact number
- Specified by:
contactNumberin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
contactNumber
public NppDetails._FinalStage contactNumber(java.util.Optional<java.lang.String> contactNumber)
- Specified by:
contactNumberin interfaceNppDetails._FinalStage
-
emailId
public NppDetails._FinalStage emailId(java.lang.String emailId)
- Specified by:
emailIdin interfaceNppDetails._FinalStage
-
emailId
public NppDetails._FinalStage emailId(java.util.Optional<java.lang.String> emailId)
- Specified by:
emailIdin interfaceNppDetails._FinalStage
-
name
public NppDetails._FinalStage name(ConsumerName name)
- Specified by:
namein interfaceNppDetails._FinalStage
-
name
public NppDetails._FinalStage name(java.util.Optional<ConsumerName> name)
- Specified by:
namein interfaceNppDetails._FinalStage
-
accountNumber
public NppDetails._FinalStage accountNumber(java.lang.String accountNumber)
Account number
- Specified by:
accountNumberin interfaceNppDetails._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
accountNumber
public NppDetails._FinalStage accountNumber(java.util.Optional<java.lang.String> accountNumber)
- Specified by:
accountNumberin interfaceNppDetails._FinalStage
-
build
public NppDetails build()
- Specified by:
buildin interfaceNppDetails._FinalStage
-
-