Class Invoice.LineItem

  • Enclosing class:
    Invoice

    public static class Invoice.LineItem
    extends java.lang.Object
    Represents a chargeable line on an invoice.
    • Constructor Summary

      Constructors 
      Constructor Description
      LineItem​(java.lang.String id, java.lang.String description, java.math.BigDecimal amount, java.lang.String plan, java.lang.String agent, java.time.ZonedDateTime addedAt)  
      LineItem​(java.lang.String id, java.lang.String description, java.math.BigDecimal amount, java.lang.String plan, java.lang.String agent, java.time.ZonedDateTime addedAt, java.time.ZonedDateTime startedAt, java.time.ZonedDateTime endedAt, com.yahoo.config.provision.ApplicationId applicationId, com.yahoo.config.provision.zone.ZoneId zoneId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.ZonedDateTime addedAt()
      When was this line item added
      java.lang.String agent()
      Who created this line item
      java.math.BigDecimal amount()
      The dollar amount of this
      java.util.Optional<com.yahoo.config.provision.ApplicationId> applicationId()
      Optionally - what application is this line item about
      java.lang.String description()
      The string description of this - used for display purposes
      java.util.Optional<java.time.ZonedDateTime> endedAt()
      What time period is this line item for - time end
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String id()
      The opaque ID of this
      java.lang.String plan()
      The plan used to calculate amount of this
      java.util.Optional<java.time.ZonedDateTime> startedAt()
      What time period is this line item for - time start
      java.lang.String toString()  
      java.util.Optional<com.yahoo.config.provision.zone.ZoneId> zoneId()
      Optionally - what zone deployment is this line item about
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LineItem

        public LineItem​(java.lang.String id,
                        java.lang.String description,
                        java.math.BigDecimal amount,
                        java.lang.String plan,
                        java.lang.String agent,
                        java.time.ZonedDateTime addedAt,
                        java.time.ZonedDateTime startedAt,
                        java.time.ZonedDateTime endedAt,
                        com.yahoo.config.provision.ApplicationId applicationId,
                        com.yahoo.config.provision.zone.ZoneId zoneId)
      • LineItem

        public LineItem​(java.lang.String id,
                        java.lang.String description,
                        java.math.BigDecimal amount,
                        java.lang.String plan,
                        java.lang.String agent,
                        java.time.ZonedDateTime addedAt)
    • Method Detail

      • id

        public java.lang.String id()
        The opaque ID of this
      • description

        public java.lang.String description()
        The string description of this - used for display purposes
      • amount

        public java.math.BigDecimal amount()
        The dollar amount of this
      • plan

        public java.lang.String plan()
        The plan used to calculate amount of this
      • agent

        public java.lang.String agent()
        Who created this line item
      • addedAt

        public java.time.ZonedDateTime addedAt()
        When was this line item added
      • startedAt

        public java.util.Optional<java.time.ZonedDateTime> startedAt()
        What time period is this line item for - time start
      • endedAt

        public java.util.Optional<java.time.ZonedDateTime> endedAt()
        What time period is this line item for - time end
      • applicationId

        public java.util.Optional<com.yahoo.config.provision.ApplicationId> applicationId()
        Optionally - what application is this line item about
      • zoneId

        public java.util.Optional<com.yahoo.config.provision.zone.ZoneId> zoneId()
        Optionally - what zone deployment is this line item about
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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