public class PaymentTCInfo extends PaymentPolicyInfo
Constructor and Description |
---|
PaymentTCInfo(PaymentPolicyInfo policyInfo)
PaymentTCInfo constructor from a PaymentPolicyInfo object.
|
PaymentTCInfo(java.lang.String astrTCId, java.lang.String astrTCSubType, java.lang.String astrDisplayName, java.lang.String astrBillToAddrId, BusinessPolicyAccessBean abPolicy, java.lang.String astrPolicyId, java.lang.String astrPolicyName, java.lang.String astrStoreEntityId)
PaymentTCInfo constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean | compatibleWith(java.util.Vector vecPaymentTCInfo)
Check if this PaymentTCInfo is compatible with at least one of the PaymentTCInfo object in the specified Vector of PaymentTCInfo objects.
|
static PaymentTCInfo | createPaymentTCInfoFromAB(TermConditionAccessBean abTC)
Creates a PaymentTCInfo object from a PaymentTC AccessBean.
|
static PaymentTCInfo | createPaymentTCInfoFromAB(TermConditionAccessBean abTC, java.lang.Integer nLangId)
Creates a PaymentTCInfo object from a PaymentTC AccessBean and sets all the other fields from the Payment Policy associated with the PaymentTC.
|
static java.util.Vector | findCommonPaymentTCInfo(java.util.Hashtable hshPaymentTCInfoByTradingId, boolean bExcludePoliciesThatRequireExplicitTC)
Helper method that returns a Vector of common PaymentTCInfo beans from a Hashtable of Vectors of PaymentTCInfo bean keyed by Trading Agreement ID.
|
java.lang.String | getAccountNumber()
Returns the account number stored in the accountNumber payment attribute
|
static TypedProperty | getAttributesFromTC(TermConditionAccessBean abTC)
Gets all the Attributes for the specified Payment Terms and Conditions.
|
static java.lang.String | getAttrStringFromTC(TermConditionAccessBean abTC)
Utility method for obtaining the Attributes of the Payment Terms and Conditions in String form (for example, n1=v1&n2=v2&n3=v3......).
|
static java.lang.String | getAttrStringFromTypedProperty(TypedProperty prop)
Gets the Payment Attributes in a single String in alphabetical order of the attribute name (for example, n1=v1&n2=v2&n3=v3.....) and separated by '&'.
|
java.lang.String | getBillToAddressId()
Returns the ID of the billToAddress specified with this PaymentTC.
|
static java.lang.String | getBillToAddrIdFromTC(TermConditionAccessBean abTC)
Helper methods that returns ID of the billTo address specified with a Payment Terms and Conditions.
|
BusinessPolicyAccessBean | getBusinessPolicy()
Returns the business policy that this Payment Terms and Conditions is based on.
|
java.lang.String | getCardExpiryMonth()
Returns the card Expiry Month stored in the cardExpiryMonth payment attribute
|
java.lang.String | getCardExpiryYear()
Returns the card Expiry Year stored in the cardExpiryYear payment attribute
|
java.lang.String | getCardNumber()
Returns the card number stored in the cardNumber payment attribute
|
java.lang.String | getCheckingAccountNumber()
Returns the checking account number stored in the checkingAccountNumber payment attribute
|
java.lang.String | getCheckRoutingNumber()
Returns the check routing number stored in the checkRoutingNumber payment attribute
|
java.lang.String | getPaymentMethodDisplayName()
Gets the payment method name that should be displayed
|
java.lang.String | getTCAttrString()
Returns the Attributes of this PaymentTC in String form with each name-value pair separated by '&'.
|
java.lang.String | getTCDisplayName()
Returns the display name of this PaymentTC.
|
java.lang.String | getTCId()
Returns the internal ID of this PaymentTC in String.
|
java.lang.String | getTCSubType()
Returns the TCSubtype of this PaymentTC.
|
boolean | isSupportedByPaymentPolicy(java.util.Vector paymentPolicyInfo)
Checks if the PaymentTC represented by this PaymentTCInfo bean is supported by the Payment Policies represented by the specified Vector of PaymentPolicyInfo beans.
|
void | setFieldsFromPolicyAB(BusinessPolicyAccessBean abPolicy, java.lang.Integer nLanguageId)
Sets the other fields of the bean from the BusinessPolicyAccessBean that represents the Payment Policy object.
|
void | setTCAttrString(java.lang.String strAttributes)
Sets the TC Attribute-String.
|
protected void | setTCAttrString(TypedProperty prop)
Sets the TC Attribute-String using the names and values from the TypedProperty.
|
java.lang.String | toString()
Method toString - creates a String representation of the object.
|
public PaymentTCInfo(PaymentPolicyInfo policyInfo)
public PaymentTCInfo(java.lang.String astrTCId, java.lang.String astrTCSubType, java.lang.String astrDisplayName, java.lang.String astrBillToAddrId, BusinessPolicyAccessBean abPolicy, java.lang.String astrPolicyId, java.lang.String astrPolicyName, java.lang.String astrStoreEntityId)
public boolean compatibleWith(java.util.Vector vecPaymentTCInfo)
public static PaymentTCInfo createPaymentTCInfoFromAB(TermConditionAccessBean abTC) throws ECException
public static PaymentTCInfo createPaymentTCInfoFromAB(TermConditionAccessBean abTC, java.lang.Integer nLangId) throws ECException
public static java.util.Vector findCommonPaymentTCInfo(java.util.Hashtable hshPaymentTCInfoByTradingId, boolean bExcludePoliciesThatRequireExplicitTC) throws ECException
A Payment Terms and Conditions is common if the same terms and conditions appear in each the Vector of PaymentTCInfo Beans.
public static TypedProperty getAttributesFromTC(TermConditionAccessBean abTC) throws ECException
public static java.lang.String getAttrStringFromTC(TermConditionAccessBean abTC) throws ECException
public static java.lang.String getAttrStringFromTypedProperty(TypedProperty prop)
Note: Attributes with empty value are dropped.
public java.lang.String getBillToAddressId()
public static java.lang.String getBillToAddrIdFromTC(TermConditionAccessBean abTC) throws ECException
public BusinessPolicyAccessBean getBusinessPolicy()
public java.lang.String getTCAttrString()
public java.lang.String getTCDisplayName()
public java.lang.String getTCId()
public java.lang.String getTCSubType()
public boolean isSupportedByPaymentPolicy(java.util.Vector paymentPolicyInfo)
Assumption: PaymentPolicyInfo Beans of the Vector are all from the same payment cassette
public void setFieldsFromPolicyAB(BusinessPolicyAccessBean abPolicy, java.lang.Integer nLanguageId) throws ECException
protected void setTCAttrString(TypedProperty prop)
public void setTCAttrString(java.lang.String strAttributes)
public java.lang.String getAccountNumber()
public java.lang.String getCardNumber()
public java.lang.String getCardExpiryMonth()
public java.lang.String getCardExpiryYear()
public java.lang.String getCheckingAccountNumber()
public java.lang.String getCheckRoutingNumber()
public java.lang.String getPaymentMethodDisplayName()
public java.lang.String toString()
Method toString - creates a String representation of the object.