Class Payment
java.lang.Object
com.commercetools.graphql.api.types.Payment
- All Implemented Interfaces:
Versioned
Payments hold information about the current state of receiving and/or refunding money.
[documentation](https://docs.commercetools.com/api/projects/payments)
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPayment()Payment(String key, Reference customerRef, Customer customer, String anonymousId, String interfaceId, Money amountPlanned, PaymentMethodInfo paymentMethodInfo, PaymentStatus paymentStatus, List<Transaction> transactions, InterfaceInteractionsRawResult interfaceInteractionsRaw, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getKey()inthashCode()static Payment.BuildervoidsetAmountPlanned(Money amountPlanned) voidsetAnonymousId(String anonymousId) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(Initiator createdBy) voidsetCustom(CustomFieldsType custom) voidsetCustomer(Customer customer) voidsetCustomerRef(Reference customerRef) voidvoidsetInterfaceId(String interfaceId) voidsetInterfaceInteractionsRaw(InterfaceInteractionsRawResult interfaceInteractionsRaw) voidvoidsetLastModifiedAt(OffsetDateTime lastModifiedAt) voidsetLastModifiedBy(Initiator lastModifiedBy) voidsetPaymentMethodInfo(PaymentMethodInfo paymentMethodInfo) voidsetPaymentStatus(PaymentStatus paymentStatus) voidsetTransactions(List<Transaction> transactions) voidsetVersion(Long version) toString()
-
Constructor Details
-
Payment
public Payment() -
Payment
public Payment(String key, Reference customerRef, Customer customer, String anonymousId, String interfaceId, Money amountPlanned, PaymentMethodInfo paymentMethodInfo, PaymentStatus paymentStatus, List<Transaction> transactions, InterfaceInteractionsRawResult interfaceInteractionsRaw, CustomFieldsType custom, String id, Long version, OffsetDateTime createdAt, OffsetDateTime lastModifiedAt, Initiator createdBy, Initiator lastModifiedBy)
-
-
Method Details
-
getKey
-
setKey
-
getCustomerRef
-
setCustomerRef
-
getCustomer
-
setCustomer
-
getAnonymousId
-
setAnonymousId
-
getInterfaceId
-
setInterfaceId
-
getAmountPlanned
-
setAmountPlanned
-
getPaymentMethodInfo
-
setPaymentMethodInfo
-
getPaymentStatus
-
setPaymentStatus
-
getTransactions
-
setTransactions
-
getInterfaceInteractionsRaw
-
setInterfaceInteractionsRaw
-
getCustom
-
setCustom
-
getId
-
setId
-
getVersion
- Specified by:
getVersionin interfaceVersioned
-
setVersion
- Specified by:
setVersionin interfaceVersioned
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceVersioned
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceVersioned
-
getLastModifiedAt
- Specified by:
getLastModifiedAtin interfaceVersioned
-
setLastModifiedAt
- Specified by:
setLastModifiedAtin interfaceVersioned
-
getCreatedBy
- Specified by:
getCreatedByin interfaceVersioned
-
setCreatedBy
- Specified by:
setCreatedByin interfaceVersioned
-
getLastModifiedBy
- Specified by:
getLastModifiedByin interfaceVersioned
-
setLastModifiedBy
- Specified by:
setLastModifiedByin interfaceVersioned
-
toString
-
equals
-
hashCode
public int hashCode() -
newBuilder
-