Record Class InvoicePayload
java.lang.Object
java.lang.Record
kr.paysync.sdk.webhook.InvoicePayload
public record InvoicePayload(String id, long number, InvoiceStatus status, Invoice.Customer customer, long amount, @Nullable Long paidAmount, @Nullable Long amountDiff, List<String> bankAccountIds, @Nullable Invoice.CashReceiptInfo cashReceipt, Map<String,String> metadata, InvoiceSource source, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Instant expiredAt, @Nullable Instant reopenedAt)
extends Record
주문 이벤트의 주문입니다. 필드는
Invoice와 같습니다.-
Constructor Summary
ConstructorsConstructorDescriptionInvoicePayload(String id, long number, InvoiceStatus status, Invoice.Customer customer, long amount, @Nullable Long paidAmount, @Nullable Long amountDiff, List<String> bankAccountIds, @Nullable Invoice.CashReceiptInfo cashReceipt, Map<String, String> metadata, InvoiceSource source, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Instant expiredAt, @Nullable Instant reopenedAt) Creates an instance of aInvoicePayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.@Nullable LongReturns the value of theamountDiffrecord component.Returns the value of thebankAccountIdsrecord component.@Nullable InstantReturns the value of thecanceledAtrecord component.@Nullable StringReturns the value of thecancelReasonrecord component.@Nullable Invoice.CashReceiptInfoReturns the value of thecashReceiptrecord component.Returns the value of thecreatedAtrecord component.customer()Returns the value of thecustomerrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable InstantReturns the value of theexpiredAtrecord component.@Nullable InstantReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@Nullable StringReturns the value of thematchedTransactionIdrecord component.metadata()Returns the value of themetadatarecord component.longnumber()Returns the value of thenumberrecord component.@Nullable LongReturns the value of thepaidAmountrecord component.@Nullable InstantpaidAt()Returns the value of thepaidAtrecord component.@Nullable PaidTriggerReturns the value of thepaidTriggerrecord component.@Nullable InstantReturns the value of thereopenedAtrecord component.source()Returns the value of thesourcerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.@Nullable InstantReturns the value of theupdatedAtrecord component.
-
Constructor Details
-
InvoicePayload
public InvoicePayload(String id, long number, InvoiceStatus status, Invoice.Customer customer, long amount, @Nullable Long paidAmount, @Nullable Long amountDiff, List<String> bankAccountIds, @Nullable Invoice.CashReceiptInfo cashReceipt, Map<String, String> metadata, InvoiceSource source, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Instant expiredAt, @Nullable Instant reopenedAt) Creates an instance of aInvoicePayloadrecord class.- Parameters:
id- the value for theidrecord componentnumber- the value for thenumberrecord componentstatus- the value for thestatusrecord componentcustomer- the value for thecustomerrecord componentamount- the value for theamountrecord componentpaidAmount- the value for thepaidAmountrecord componentamountDiff- the value for theamountDiffrecord componentbankAccountIds- the value for thebankAccountIdsrecord componentcashReceipt- the value for thecashReceiptrecord componentmetadata- the value for themetadatarecord componentsource- the value for thesourcerecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord componentexpiresAt- the value for theexpiresAtrecord componentpaidAt- the value for thepaidAtrecord componentpaidTrigger- the value for thepaidTriggerrecord componentmatchedTransactionId- the value for thematchedTransactionIdrecord componentcanceledAt- the value for thecanceledAtrecord componentcancelReason- the value for thecancelReasonrecord componentexpiredAt- the value for theexpiredAtrecord componentreopenedAt- the value for thereopenedAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
number
public long number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
customer
Returns the value of thecustomerrecord component.- Returns:
- the value of the
customerrecord component
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
paidAmount
Returns the value of thepaidAmountrecord component.- Returns:
- the value of the
paidAmountrecord component
-
amountDiff
Returns the value of theamountDiffrecord component.- Returns:
- the value of the
amountDiffrecord component
-
bankAccountIds
-
cashReceipt
Returns the value of thecashReceiptrecord component.- Returns:
- the value of the
cashReceiptrecord component
-
metadata
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
paidAt
Returns the value of thepaidAtrecord component.- Returns:
- the value of the
paidAtrecord component
-
paidTrigger
Returns the value of thepaidTriggerrecord component.- Returns:
- the value of the
paidTriggerrecord component
-
matchedTransactionId
Returns the value of thematchedTransactionIdrecord component.- Returns:
- the value of the
matchedTransactionIdrecord component
-
canceledAt
Returns the value of thecanceledAtrecord component.- Returns:
- the value of the
canceledAtrecord component
-
cancelReason
Returns the value of thecancelReasonrecord component.- Returns:
- the value of the
cancelReasonrecord component
-
expiredAt
Returns the value of theexpiredAtrecord component.- Returns:
- the value of the
expiredAtrecord component
-
reopenedAt
Returns the value of thereopenedAtrecord component.- Returns:
- the value of the
reopenedAtrecord component
-