Class PaymentMethodType
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.dto.PaymentMethodType
Defines a specific method of payment (e.g. direct debit with all details associated)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of payment method (e.g.: bank card, cash, voucher…). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccount(List<AccountRefType> account) addAccountItem(AccountRefType accountItem) atType(PaymentMethodType.AtTypeEnum atType) authorizationCode(String authorizationCode) description(String description) details(CreditCardType details) boolean@Valid List<AccountRefType>Reference to the accounts that are linked to the payment method.Type of payment method (e.g.: bank card, cash, voucher…).Review: Authorization code provided by a financial institution.Text description of the contents of the payment method@Valid CreditCardTypeGet detailsgetHref()URI where to perform actions on the payment methodgetId()Unique id of the payment method in the servergetName()Friendly name assigned to the payment method@Valid RelatedPartyRefTypeGet relatedPartyStatus of the payment method@Valid DateThe last time the payment method status changed.The reason for the last status change.@Valid TimePeriodTypeGet validFor@Valid VoucherTypeGet voucherinthashCode()If the method is the preferred one by the owner.relatedParty(RelatedPartyRefType relatedParty) voidsetAccount(List<AccountRefType> account) voidvoidsetAuthorizationCode(String authorizationCode) voidsetDescription(String description) voidsetDetails(CreditCardType details) voidvoidvoidvoidsetPreferred(Boolean preferred) voidsetRelatedParty(RelatedPartyRefType relatedParty) voidvoidsetStatusDate(Date statusDate) voidsetStatusReason(String statusReason) voidsetValidFor(TimePeriodType validFor) voidsetVoucher(VoucherType voucher) statusDate(Date statusDate) statusReason(String statusReason) toString()validFor(TimePeriodType validFor) voucher(VoucherType voucher)
-
Constructor Details
-
PaymentMethodType
public PaymentMethodType()
-
-
Method Details
-
id
-
getId
Unique id of the payment method in the server- Returns:
- id
-
setId
-
href
-
getHref
URI where to perform actions on the payment method- Returns:
- href
-
setHref
-
name
-
getName
Friendly name assigned to the payment method- Returns:
- name
-
setName
-
description
-
getDescription
Text description of the contents of the payment method- Returns:
- description
-
setDescription
-
preferred
-
isPreferred
If the method is the preferred one by the owner. Typically used when querying for the payment methods of a specific customer or account- Returns:
- preferred
-
setPreferred
-
authorizationCode
-
getAuthorizationCode
Review: Authorization code provided by a financial institution. Typically this would be populated for recurring payments using the method, as payments have an authorization code of their own.- Returns:
- authorizationCode
-
setAuthorizationCode
-
status
-
getStatus
Status of the payment method- Returns:
- status
-
setStatus
-
statusDate
-
getStatusDate
The last time the payment method status changed.- Returns:
- statusDate
-
setStatusDate
-
statusReason
-
getStatusReason
The reason for the last status change.- Returns:
- statusReason
-
setStatusReason
-
validFor
-
getValidFor
Get validFor- Returns:
- validFor
-
setValidFor
-
atType
-
getAtType
Type of payment method (e.g.: bank card, cash, voucher…). The details field type depends on the value assigned to this one.- Returns:
- atType
-
setAtType
-
details
-
getDetails
Get details- Returns:
- details
-
setDetails
-
getRelatedParty
Get relatedParty- Returns:
- relatedParty
-
setRelatedParty
-
account
-
addAccountItem
-
getAccount
Reference to the accounts that are linked to the payment method. May be a party account or a financial account.- Returns:
- account
-
setAccount
-
voucher
-
getVoucher
Get voucher- Returns:
- voucher
-
setVoucher
-
equals
-
hashCode
public int hashCode() -
toString
-