Module it.auties.whatsapp4j
Package it.auties.whatsapp.model.info
Class PaymentInfo.PaymentInfoBuilder
java.lang.Object
it.auties.whatsapp.model.info.PaymentInfo.PaymentInfoBuilder
- Enclosing class:
- PaymentInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private String
private PaymentInfo.PaymentInfoCurrency
private PaymentMoney
private long
private boolean
private PaymentMoney
private String
private MessageKey
private PaymentInfo.PaymentInfoStatus
private PaymentInfo.PaymentInfoTxnStatus
private long
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount1000
(long amount1000) The amount of money involved in this transactionbuild()
The currency of this transactioncurrencyDeprecated
(PaymentInfo.PaymentInfoCurrency currencyDeprecated) Deprecated.exchangeAmount
(PaymentMoney exchangeAmount) The exchange amountexpiryTimestamp
(long expiryTimestamp) The date of expiration of this transactionfutureProofed
(boolean futureProofed) Future proofedprimaryAmount
(PaymentMoney primaryAmount) The primary amountreceiverJid
(String receiverJid) The jid of the beneficiary of this transactionrequestMessageKey
(MessageKey requestMessageKey) The MessageKey of theRequestPaymentMessage
that originated this transactionstatus
(PaymentInfo.PaymentInfoStatus status) The status of this paymenttoString()
transactionStatus
(PaymentInfo.PaymentInfoTxnStatus transactionStatus) The status of this transactiontransactionTimestamp
(long transactionTimestamp) The timestamp, that is the seconds sinceInstant.EPOCH
, when theRequestPaymentMessage
that originated this transaction was sentuseNoviFormat
(boolean useNoviFormat) Whether the novi format should be used
-
Field Details
-
currencyDeprecated
-
amount1000
private long amount1000 -
receiverJid
-
status
-
transactionTimestamp
private long transactionTimestamp -
requestMessageKey
-
expiryTimestamp
private long expiryTimestamp -
futureProofed
private boolean futureProofed -
currency
-
transactionStatus
-
useNoviFormat
private boolean useNoviFormat -
-
exchangeAmount
-
-
Constructor Details
-
PaymentInfoBuilder
PaymentInfoBuilder()
-
-
Method Details
-
currencyDeprecated
@Deprecated public PaymentInfo.PaymentInfoBuilder currencyDeprecated(PaymentInfo.PaymentInfoCurrency currencyDeprecated) Deprecated.The currency of this transaction- Returns:
this
.
-
amount1000
The amount of money involved in this transaction- Returns:
this
.
-
receiverJid
The jid of the beneficiary of this transaction- Returns:
this
.
-
status
The status of this payment- Returns:
this
.
-
transactionTimestamp
The timestamp, that is the seconds sinceInstant.EPOCH
, when theRequestPaymentMessage
that originated this transaction was sent- Returns:
this
.
-
requestMessageKey
The MessageKey of theRequestPaymentMessage
that originated this transaction- Returns:
this
.
-
expiryTimestamp
The date of expiration of this transaction- Returns:
this
.
-
futureProofed
Future proofed- Returns:
this
.
-
currency
The currency of this transaction- Returns:
this
.
-
transactionStatus
public PaymentInfo.PaymentInfoBuilder transactionStatus(PaymentInfo.PaymentInfoTxnStatus transactionStatus) The status of this transaction- Returns:
this
.
-
useNoviFormat
Whether the novi format should be used- Returns:
this
.
-
primaryAmount
The primary amount- Returns:
this
.
-
exchangeAmount
The exchange amount- Returns:
this
.
-
build
-
toString
-