Class ShippingRate

    • Constructor Detail

      • ShippingRate

        public ShippingRate()
    • Method Detail

      • getTaxCode

        public java.lang.String getTaxCode()
        Get ID of expandable taxCode object.
      • setTaxCode

        public void setTaxCode​(java.lang.String id)
      • getTaxCodeObject

        public TaxCode getTaxCodeObject()
        Get expanded taxCode.
      • setTaxCodeObject

        public void setTaxCodeObject​(TaxCode expandableObject)
      • getActive

        public java.lang.Boolean getActive()
        Whether the shipping rate can be used for new purchases. Defaults to true.
      • getCreated

        public java.lang.Long getCreated()
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • getDeliveryEstimate

        public ShippingRate.DeliveryEstimate getDeliveryEstimate()
        The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
      • getDisplayName

        public java.lang.String getDisplayName()
        The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
      • getLivemode

        public java.lang.Boolean getLivemode()
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.

        Equal to shipping_rate.

      • getTaxBehavior

        public java.lang.String getTaxBehavior()
        Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
      • getType

        public java.lang.String getType()
        The type of calculation to use on the shipping rate. Can only be fixed_amount for now.

        Equal to fixed_amount.

      • setActive

        public void setActive​(java.lang.Boolean active)
        Whether the shipping rate can be used for new purchases. Defaults to true.
      • setCreated

        public void setCreated​(java.lang.Long created)
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • setDeliveryEstimate

        public void setDeliveryEstimate​(ShippingRate.DeliveryEstimate deliveryEstimate)
        The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
      • setDisplayName

        public void setDisplayName​(java.lang.String displayName)
        The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.

        Equal to shipping_rate.

      • setTaxBehavior

        public void setTaxBehavior​(java.lang.String taxBehavior)
        Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
      • setType

        public void setType​(java.lang.String type)
        The type of calculation to use on the shipping rate. Can only be fixed_amount for now.

        Equal to fixed_amount.

      • equals

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

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
        Specified by:
        getMetadata in interface MetadataStore<ShippingRate>