Class Price
- java.lang.Object
-
- pl.gsmservice.gateway.models.components.Price
-
public class Price extends java.lang.ObjectPriceAn object with the properties and price of a single message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrice.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.Builderbuilder()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>cid()Custom message ID assigned by the Userbooleanequals(java.lang.Object o)org.openapitools.jackson.nullable.JsonNullable<java.lang.String>error()Information about a possible errorjava.util.Optional<java.lang.Boolean>flash()Was the message sent with class 0 (FLASH)?inthashCode()org.openapitools.jackson.nullable.JsonNullable<java.lang.Long>parts()The count of parts that message consists ofjava.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 namejava.lang.StringtoString()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.PricewithCid(java.lang.String cid)Custom message ID assigned by the UserPricewithCid(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> cid)Custom message ID assigned by the UserPricewithError(java.lang.String error)Information about a possible errorPricewithError(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> error)Information about a possible errorPricewithFlash(boolean flash)Was the message sent with class 0 (FLASH)?PricewithFlash(java.util.Optional<java.lang.Boolean> flash)Was the message sent with class 0 (FLASH)?PricewithParts(long parts)The count of parts that message consists ofPricewithParts(org.openapitools.jackson.nullable.JsonNullable<java.lang.Long> parts)The count of parts that message consists ofPricewithPrice(float price)The price of message (in PLN)PricewithPrice(java.util.Optional<java.lang.Float> price)The price of message (in PLN)PricewithRecipient(java.lang.String recipient)A telephone number in international format (with a plus sign and the country code at the beginning, e.g.PricewithRecipient(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.PricewithSender(java.lang.String sender)Message sender namePricewithSender(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> sender)Message sender namePricewithType(java.util.Optional<? extends MessageType> type)Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)PricewithType(MessageType type)Message type (SmsType.SmsPro -> SMS PRO, SmsType.SmsEco -> SMS ECO, SmsType.SmsTwoWay ->SMS 2WAY, SmsType.Mms -> MMS)PricewithUnicode(boolean unicode)Did the message contain special characters, e.g.PricewithUnicode(java.util.Optional<java.lang.Boolean> unicode)Did the message contain special characters, e.g.
-
-
-
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)
-
builder
public static Price.Builder builder()
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-