Record Class Invoice
java.lang.Object
java.lang.Record
kr.paysync.sdk.invoice.Invoice
- Record Components:
id- 주문 ID (ivc_...)number- 워크스페이스 안의 주문번호 (1001부터)status- 주문 상태customer- 구매자amount- 입금받을 금액(원)paidAmount- 실제로 입금된 금액. 결제 완료 전에는 null입니다.amountDiff- 입금 금액에서 주문 금액을 뺀 값bankAccountIds- 입금받을 계좌 ID. 비어 있으면 워크스페이스의 모든 계좌로 받습니다.cashReceipt- 결제 완료 때 발급할 현금영수증 정보metadata- 주문을 만들 때 넣은 키-값source- 주문을 만든 경로createdBy- 주문을 만든 주체cafe24- 카페24 주문이면 카페24 주문 정보guideUrl- 구매자에게 보여 줄 입금 안내 페이지 주소guideEmailSentAt- 입금 안내 메일을 마지막으로 보낸 시각createdAt- 만든 시각updatedAt- 마지막으로 바뀐 시각expiresAt- 입금 기한. null이면 기한이 없습니다.paidAt- 결제 완료 시각paidTrigger- 결제 완료 경로paidBy- 결제 완료로 바꾼 주체matchedTransactionId- 매칭된 입금 ID (trx_...)canceledAt- 취소 시각cancelReason- 취소 사유canceledBy- 취소한 주체expiredAt- 만료된 시각reopenedAt- 매칭이 해제돼 다시 열린 시각history- 주문 기록. 단건 조회에서만 옵니다.
public record Invoice(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, Actor createdBy, @Nullable Invoice.Cafe24 cafe24, String guideUrl, @Nullable Instant guideEmailSentAt, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable Actor paidBy, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Actor canceledBy, @Nullable Instant expiredAt, @Nullable Instant reopenedAt, @Nullable List<Invoice.History> history)
extends Record
주문입니다.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record카페24 주문 정보입니다.static final record결제 완료 때 자동으로 발급할 현금영수증 정보입니다.static final record수정 기록에서 바뀐 필드입니다.static final record구매자입니다.static final record주문 기록입니다. -
Constructor Summary
ConstructorsConstructorDescriptionInvoice(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, Actor createdBy, @Nullable Invoice.Cafe24 cafe24, String guideUrl, @Nullable Instant guideEmailSentAt, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable Actor paidBy, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Actor canceledBy, @Nullable Instant expiredAt, @Nullable Instant reopenedAt, @Nullable List<Invoice.History> history) Creates an instance of aInvoicerecord 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 Invoice.Cafe24cafe24()Returns the value of thecafe24record component.@Nullable InstantReturns the value of thecanceledAtrecord component.@Nullable ActorReturns the value of thecanceledByrecord component.@Nullable StringReturns the value of thecancelReasonrecord component.@Nullable Invoice.CashReceiptInfoReturns the value of thecashReceiptrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thecreatedByrecord 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.@Nullable InstantReturns the value of theguideEmailSentAtrecord component.guideUrl()Returns the value of theguideUrlrecord component.final inthashCode()Returns a hash code value for this object.@Nullable List<Invoice.History> history()Returns the value of thehistoryrecord component.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 ActorpaidBy()Returns the value of thepaidByrecord 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
-
Invoice
public Invoice(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, Actor createdBy, @Nullable Invoice.Cafe24 cafe24, String guideUrl, @Nullable Instant guideEmailSentAt, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable Actor paidBy, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Actor canceledBy, @Nullable Instant expiredAt, @Nullable Instant reopenedAt, @Nullable List<Invoice.History> history) Creates an instance of aInvoicerecord 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 componentcreatedBy- the value for thecreatedByrecord componentcafe24- the value for thecafe24record componentguideUrl- the value for theguideUrlrecord componentguideEmailSentAt- the value for theguideEmailSentAtrecord 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 componentpaidBy- the value for thepaidByrecord componentmatchedTransactionId- the value for thematchedTransactionIdrecord componentcanceledAt- the value for thecanceledAtrecord componentcancelReason- the value for thecancelReasonrecord componentcanceledBy- the value for thecanceledByrecord componentexpiredAt- the value for theexpiredAtrecord componentreopenedAt- the value for thereopenedAtrecord componenthistory- the value for thehistoryrecord 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
-
number
-
status
-
customer
-
amount
-
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
Returns the value of thebankAccountIdsrecord component.- Returns:
- the value of the
bankAccountIdsrecord component
-
cashReceipt
Returns the value of thecashReceiptrecord component.- Returns:
- the value of the
cashReceiptrecord component
-
metadata
-
source
-
createdBy
-
cafe24
-
guideUrl
-
guideEmailSentAt
Returns the value of theguideEmailSentAtrecord component.- Returns:
- the value of the
guideEmailSentAtrecord component
-
createdAt
-
updatedAt
-
expiresAt
-
paidAt
-
paidTrigger
Returns the value of thepaidTriggerrecord component.- Returns:
- the value of the
paidTriggerrecord component
-
paidBy
-
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
-
canceledBy
Returns the value of thecanceledByrecord component.- Returns:
- the value of the
canceledByrecord component
-
expiredAt
-
reopenedAt
Returns the value of thereopenedAtrecord component.- Returns:
- the value of the
reopenedAtrecord component
-
history
-