Class Pricing


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-10-02T12:25:58.319138+03:00[Europe/Athens]")
    public class Pricing
    extends java.lang.Object
    Pricing created by converting an array to product
    • Field Detail

      • SERIALIZED_NAME_ID

        public static final java.lang.String SERIALIZED_NAME_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ARRAY_UUID

        public static final java.lang.String SERIALIZED_NAME_ARRAY_UUID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PRICING_NAME

        public static final java.lang.String SERIALIZED_NAME_PRICING_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PRICING_TYPE

        public static final java.lang.String SERIALIZED_NAME_PRICING_TYPE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PRODUCT_NAME

        public static final java.lang.String SERIALIZED_NAME_PRODUCT_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PRODUCT_STATEMENT_DESCRIPTOR

        public static final java.lang.String SERIALIZED_NAME_PRODUCT_STATEMENT_DESCRIPTOR
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_PRODUCT_UNIT_LABEL

        public static final java.lang.String SERIALIZED_NAME_PRODUCT_UNIT_LABEL
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CURRENCY

        public static final java.lang.String SERIALIZED_NAME_CURRENCY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_AGGREGATE_USAGE

        public static final java.lang.String SERIALIZED_NAME_AGGREGATE_USAGE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_INTERVAL

        public static final java.lang.String SERIALIZED_NAME_INTERVAL
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_DIVIDED_BY

        public static final java.lang.String SERIALIZED_NAME_DIVIDED_BY
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_CHARGE

        public static final java.lang.String SERIALIZED_NAME_CHARGE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_ACTIVATED

        public static final java.lang.String SERIALIZED_NAME_ACTIVATED
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • Pricing

        public Pricing()
    • Method Detail

      • id

        public Pricing id​(java.lang.String id)
      • getId

        @Nullable
        public java.lang.String getId()
        Unique ID of plan as defined by Stripe
        Returns:
        id
      • setId

        public void setId​(java.lang.String id)
      • arrayUuid

        public Pricing arrayUuid​(java.lang.String arrayUuid)
      • getArrayUuid

        @Nullable
        public java.lang.String getArrayUuid()
        Unique ID of registered array
        Returns:
        arrayUuid
      • setArrayUuid

        public void setArrayUuid​(java.lang.String arrayUuid)
      • pricingName

        public Pricing pricingName​(java.lang.String pricingName)
      • getPricingName

        @Nullable
        public java.lang.String getPricingName()
        Name of pricing
        Returns:
        pricingName
      • setPricingName

        public void setPricingName​(java.lang.String pricingName)
      • getPricingType

        @Nullable
        public PricingType getPricingType()
        Get pricingType
        Returns:
        pricingType
      • setPricingType

        public void setPricingType​(PricingType pricingType)
      • productName

        public Pricing productName​(java.lang.String productName)
      • getProductName

        @Nullable
        public java.lang.String getProductName()
        Name of product
        Returns:
        productName
      • setProductName

        public void setProductName​(java.lang.String productName)
      • productStatementDescriptor

        public Pricing productStatementDescriptor​(java.lang.String productStatementDescriptor)
      • getProductStatementDescriptor

        @Nullable
        public java.lang.String getProductStatementDescriptor()
        Extra information about a product which will appear on the credit card statement of the customer
        Returns:
        productStatementDescriptor
      • setProductStatementDescriptor

        public void setProductStatementDescriptor​(java.lang.String productStatementDescriptor)
      • getProductUnitLabel

        @Nullable
        public PricingUnitLabel getProductUnitLabel()
        Get productUnitLabel
        Returns:
        productUnitLabel
      • setProductUnitLabel

        public void setProductUnitLabel​(PricingUnitLabel productUnitLabel)
      • getCurrency

        @Nullable
        public PricingCurrency getCurrency()
        Get currency
        Returns:
        currency
      • getAggregateUsage

        @Nullable
        public PricingAggregateUsage getAggregateUsage()
        Get aggregateUsage
        Returns:
        aggregateUsage
      • getInterval

        @Nullable
        public PricingInterval getInterval()
        Get interval
        Returns:
        interval
      • dividedBy

        public Pricing dividedBy​(java.lang.Long dividedBy)
      • getDividedBy

        @Nullable
        public java.lang.Long getDividedBy()
        Group of n product unit labels
        Returns:
        dividedBy
      • setDividedBy

        public void setDividedBy​(java.lang.Long dividedBy)
      • charge

        public Pricing charge​(java.lang.Double charge)
      • getCharge

        @Nullable
        public java.lang.Double getCharge()
        Price in cents (decimal) per unitlabel
        Returns:
        charge
      • setCharge

        public void setCharge​(java.lang.Double charge)
      • activated

        public Pricing activated​(java.lang.Boolean activated)
      • getActivated

        @Nullable
        public java.lang.Boolean getActivated()
        If pricing is activated
        Returns:
        activated
      • setActivated

        public void setActivated​(java.lang.Boolean activated)
      • putAdditionalProperty

        public Pricing putAdditionalProperty​(java.lang.String key,
                                             java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
      • 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
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws java.io.IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        java.io.IOException - if the JSON Object is invalid with respect to Pricing
      • fromJson

        public static Pricing fromJson​(java.lang.String jsonString)
                                throws java.io.IOException
        Create an instance of Pricing given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Pricing
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to Pricing
      • toJson

        public java.lang.String toJson()
        Convert an instance of Pricing to an JSON string
        Returns:
        JSON string