Class GeoBadPayerInfoDto

java.lang.Object
de.calamanari.pk.transferobjectassembler.GeoBadPayerInfoDto
All Implemented Interfaces:
java.io.Serializable

public class GeoBadPayerInfoDto
extends java.lang.Object
implements java.io.Serializable
Geo Bad Payer Info Dto - data transfer object to be assembled, contains information to be collected from different business entities.
In our fictional scenario a list of bad payers related to their location has to be displayed.
Author:
Karl Eilebrecht
See Also:
Serialized Form
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  GeoBadPayerInfoDto.Builder
    Builder to avoid over-parameterized constructor
  • Constructor Summary

    Constructors
    Constructor Description
    GeoBadPayerInfoDto()  
  • Method Summary

    Modifier and Type Method Description
    static GeoBadPayerInfoDto.Builder forCustomer​(java.lang.String customerId)
    Returns a BUILDER to simplify construction
    java.lang.String getCity()
    Returns the city name
    java.lang.String getCountry()
    Returns the country name
    java.lang.String getCustomerId()
    Returns the customerId
    java.lang.String getCustomerType()
    Returns the type of customer (classification)
    java.lang.String getFirstName()
    Returns the customer's first name
    java.lang.String getLastName()
    Returns the last name of customer
    java.lang.String getTitle()
    Returns customer title
    java.lang.String getZipCode()
    Returns the zipcode
    boolean isDueInvoice()
    Returns whether this customer has an open invoice
    void setCity​(java.lang.String city)
    Sets the city name
    void setCountry​(java.lang.String country)
    Sets the country
    void setCustomerId​(java.lang.String customerId)
    Sets the customerId
    void setCustomerType​(java.lang.String customerType)
    Sets the customer type
    void setDueInvoice​(boolean dueInvoice)
    Sets the due invoice flag
    void setFirstName​(java.lang.String firstName)
    Sets the customer's first name
    void setLastName​(java.lang.String lastName)
    Sets the customer's last name
    void setTitle​(java.lang.String title)
    Sets the customer's title
    void setZipCode​(java.lang.String zipCode)
    Sets the zipCode
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • forCustomer

      public static GeoBadPayerInfoDto.Builder forCustomer​(java.lang.String customerId)
      Returns a BUILDER to simplify construction
      Parameters:
      customerId - mandatory
      Returns:
      builder instance
    • getCustomerId

      public java.lang.String getCustomerId()
      Returns the customerId
      Returns:
      customerId
    • setCustomerId

      public void setCustomerId​(java.lang.String customerId)
      Sets the customerId
      Parameters:
      customerId - identifier
    • getTitle

      public java.lang.String getTitle()
      Returns customer title
      Returns:
      title of customer
    • setTitle

      public void setTitle​(java.lang.String title)
      Sets the customer's title
      Parameters:
      title - person's title
    • getLastName

      public java.lang.String getLastName()
      Returns the last name of customer
      Returns:
      lastName
    • setLastName

      public void setLastName​(java.lang.String lastName)
      Sets the customer's last name
      Parameters:
      lastName - person's last name
    • getFirstName

      public java.lang.String getFirstName()
      Returns the customer's first name
      Returns:
      firstName
    • setFirstName

      public void setFirstName​(java.lang.String firstName)
      Sets the customer's first name
      Parameters:
      firstName - person's first name
    • getZipCode

      public java.lang.String getZipCode()
      Returns the zipcode
      Returns:
      zipCode
    • setZipCode

      public void setZipCode​(java.lang.String zipCode)
      Sets the zipCode
      Parameters:
      zipCode - address field
    • getCity

      public java.lang.String getCity()
      Returns the city name
      Returns:
      city
    • setCity

      public void setCity​(java.lang.String city)
      Sets the city name
      Parameters:
      city - address field
    • getCountry

      public java.lang.String getCountry()
      Returns the country name
      Returns:
      country
    • setCountry

      public void setCountry​(java.lang.String country)
      Sets the country
      Parameters:
      country - address field
    • getCustomerType

      public java.lang.String getCustomerType()
      Returns the type of customer (classification)
      Returns:
      customerType
    • setCustomerType

      public void setCustomerType​(java.lang.String customerType)
      Sets the customer type
      Parameters:
      customerType - type of customer
    • isDueInvoice

      public boolean isDueInvoice()
      Returns whether this customer has an open invoice
      Returns:
      true whether there is an open invoice
    • setDueInvoice

      public void setDueInvoice​(boolean dueInvoice)
      Sets the due invoice flag
      Parameters:
      dueInvoice - true indicates an open invoice not payed yet
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object