Class Price


  • public class Price
    extends java.lang.Object
    Price

    An object with the properties and price of a single message

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Price.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Price()  
      Price​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid, java.util.Optional<? extends MessageType> type, java.util.Optional<java.lang.String> recipient, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender, org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts, java.util.Optional<java.lang.Boolean> unicode, java.util.Optional<java.lang.Boolean> flash, java.util.Optional<java.lang.Float> price)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Price.Builder builder()  
      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid()
      Custom message ID assigned by the User
      boolean equals​(java.lang.Object o)  
      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error()
      Information about a possible error
      java.util.Optional<java.lang.Boolean> flash()
      Was the message sent with class 0 (FLASH)?
      int hashCode()  
      org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts()
      The count of parts that message consists of
      java.util.Optional<java.lang.Float> price()
      The price of message (in PLN)
      java.util.Optional<java.lang.String> recipient()
      A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender()
      Message sender name
      java.lang.String toString()  
      java.util.Optional<MessageType> type()
      Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      java.util.Optional<java.lang.Boolean> unicode()
      Did the message contain special characters, e.g.
      Price withCid​(java.lang.String cid)
      Custom message ID assigned by the User
      Price withCid​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)
      Custom message ID assigned by the User
      Price withError​(java.lang.String error)
      Information about a possible error
      Price withError​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error)
      Information about a possible error
      Price withFlash​(boolean flash)
      Was the message sent with class 0 (FLASH)?
      Price withFlash​(java.util.Optional<java.lang.Boolean> flash)
      Was the message sent with class 0 (FLASH)?
      Price withParts​(long parts)
      The count of parts that message consists of
      Price withParts​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)
      The count of parts that message consists of
      Price withPrice​(float price)
      The price of message (in PLN)
      Price withPrice​(java.util.Optional<java.lang.Float> price)
      The price of message (in PLN)
      Price withRecipient​(java.lang.String recipient)
      A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
      Price withRecipient​(java.util.Optional<java.lang.String> recipient)
      A telephone number in international format (with a plus sign and the country code at the beginning, e.g.
      Price withSender​(java.lang.String sender)
      Message sender name
      Price withSender​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)
      Message sender name
      Price withType​(java.util.Optional<? extends MessageType> type)
      Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      Price withType​(MessageType type)
      Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      Price withUnicode​(boolean unicode)
      Did the message contain special characters, e.g.
      Price withUnicode​(java.util.Optional<java.lang.Boolean> unicode)
      Did the message contain special characters, e.g.
      • Methods inherited from class java.lang.Object

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

      • Price

        public Price​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error,
                     org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid,
                     java.util.Optional<? extends MessageType> type,
                     java.util.Optional<java.lang.String> recipient,
                     org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender,
                     org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts,
                     java.util.Optional<java.lang.Boolean> unicode,
                     java.util.Optional<java.lang.Boolean> flash,
                     java.util.Optional<java.lang.Float> price)
      • Price

        public Price()
    • Method Detail

      • error

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error()
        Information about a possible error
      • cid

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid()
        Custom message ID assigned by the User
      • type

        public java.util.Optional<MessageType> type()
        Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      • recipient

        public java.util.Optional<java.lang.String> recipient()
        A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
      • sender

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender()
        Message sender name
      • parts

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts()
        The count of parts that message consists of
      • unicode

        public java.util.Optional<java.lang.Boolean> unicode()
        Did the message contain special characters, e.g. Polish diacritics?
      • flash

        public java.util.Optional<java.lang.Boolean> flash()
        Was the message sent with class 0 (FLASH)?
      • price

        public java.util.Optional<java.lang.Float> price()
        The price of message (in PLN)
      • withError

        public Price withError​(java.lang.String error)
        Information about a possible error
      • withError

        public Price withError​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error)
        Information about a possible error
      • withCid

        public Price withCid​(java.lang.String cid)
        Custom message ID assigned by the User
      • withCid

        public Price withCid​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)
        Custom message ID assigned by the User
      • withType

        public Price withType​(MessageType type)
        Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      • withType

        public Price withType​(java.util.Optional<? extends MessageType> type)
        Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)
      • withRecipient

        public Price withRecipient​(java.lang.String recipient)
        A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
      • withRecipient

        public Price withRecipient​(java.util.Optional<java.lang.String> recipient)
        A telephone number in international format (with a plus sign and the country code at the beginning, e.g. +48 for Poland)
      • withSender

        public Price withSender​(java.lang.String sender)
        Message sender name
      • withSender

        public Price withSender​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)
        Message sender name
      • withParts

        public Price withParts​(long parts)
        The count of parts that message consists of
      • withParts

        public Price withParts​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)
        The count of parts that message consists of
      • withUnicode

        public Price withUnicode​(boolean unicode)
        Did the message contain special characters, e.g. Polish diacritics?
      • withUnicode

        public Price withUnicode​(java.util.Optional<java.lang.Boolean> unicode)
        Did the message contain special characters, e.g. Polish diacritics?
      • withFlash

        public Price withFlash​(boolean flash)
        Was the message sent with class 0 (FLASH)?
      • withFlash

        public Price withFlash​(java.util.Optional<java.lang.Boolean> flash)
        Was the message sent with class 0 (FLASH)?
      • withPrice

        public Price withPrice​(float price)
        The price of message (in PLN)
      • withPrice

        public Price withPrice​(java.util.Optional<java.lang.Float> price)
        The price of message (in PLN)
      • 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