Class PIACreditCardBeanImpl

All Implemented Interfaces:
PIACreditCardBean, PIAPaymentTypePanelBean, PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PIACreditCardBeanImpl extends PIAComponentCollectionBean implements PIACreditCardBean
Controller class for getting default credit card information
See Also:
  • Constructor Details

    • PIACreditCardBeanImpl

      public PIACreditCardBeanImpl() throws RemoteException
      Creates a new controller for the credit card payment type
      Throws:
      RemoteException
  • Method Details

    • defaultsForUpdate

      public boolean defaultsForUpdate(PModelHandle model) throws RemoteException
      Appends additional maintenance-time credit card information onto the model passed in. The Payinfo credit card bill type and the existing Payinfo POID will be appended. (See the following example.)
       Example showing Credit Card additional data appended at update-time:
       0 PIN_FLD_PAYINFO       ARRAY [1] allocated 2, used 2
       1     PIN_FLD_POID           POID [0] 0.0.0.1 /payinfo/cc 26339 13
       1     PIN_FLD_PAY_TYPE      ENUM [0] 10003
       

      Specified by:
      defaultsForUpdate in interface PIAPaymentTypePanelBean
      Parameters:
      model - the model that needs to be updated
      Returns:
      false if the model handle for the view for this component is null; true otherwise
      Throws:
      RemoteException
    • defaultsForStoring

      public void defaultsForStoring(PModelHandle model) throws RemoteException
      Appends additional create-time credit card information onto the model passed in. The Payinfo credit card bill type and a Payinfo type-only credit card POID as well as default credit card information will be appended. (See the following example.)
       Example showing Credit Card defaults appended at commit-time:
       0 PIN_FLD_PAYINFO       ARRAY [1] allocated 20, used 3
       1     PIN_FLD_PAY_TYPE      ENUM [0] 10003
       1     PIN_FLD_POID           POID [0] 0.0.0.1 /payinfo/cc -1 0
       1     PIN_FLD_INHERITED_INFO SUBSTRUCT [0] allocated 20, used 1
       2         PIN_FLD_CC_INFO       ARRAY [0] allocated 20, used 8
       3             PIN_FLD_DEBIT_EXP       STR [0] ""
       3             PIN_FLD_DEBIT_NUM       STR [0] ""
       3             PIN_FLD_NAME            STR [0] ""
       3             PIN_FLD_ADDRESS         STR [0] ""
       3             PIN_FLD_CITY            STR [0] ""
       3             PIN_FLD_STATE           STR [0] ""
       3             PIN_FLD_ZIP             STR [0] ""
       3             PIN_FLD_COUNTRY         STR [0] ""
       

      NOTE: At commit-time the server side needs a string for each of the PIN_FLD_CC_INFO array elements.
      Specified by:
      defaultsForStoring in interface PIAPaymentTypePanelBean
      Parameters:
      model - the model that needs to be updated
      Throws:
      RemoteException
    • defaultsForValidation

      public void defaultsForValidation(PModelHandle model) throws RemoteException
      Appends additional validate-time credit card information onto the model passed in. The Payinfo credit card bill type and a Payinfo type-only credit card POID will be appended.
       Example showing Credit Card defaults appended at validate-time:
       0 PIN_FLD_PAYINFO       ARRAY [1] allocated 2, used 2
       1     PIN_FLD_PAY_TYPE      ENUM [0] 10003
       1     PIN_FLD_POID           POID [0] 0.0.0.1 /payinfo/cc -1 0
       

      Specified by:
      defaultsForValidation in interface PIAPaymentTypePanelBean
      Parameters:
      model - the model that needs to be updated
      Throws:
      RemoteException
    • getNameAddressData

      public NameAddressData getNameAddressData(PModelHandle modelHandle) throws RemoteException
      Gets the contact Name and Address Info
      Specified by:
      getNameAddressData in interface PIAPaymentTypePanelBean
      Parameters:
      modelHandle - Model from which name/address etc., are to be extracted
      modelhandle - current account model
      Returns:
      NameAddressData data structure containing name and address Info
      Throws:
      RemoteException