All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.content.model.CarrierRate.html Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version






CarrierRate (Content API for Shopping v2.1-rev20200529-1.30.9)












com.google.api.services.content.model

Class CarrierRate

    • Constructor Detail

      • CarrierRate

        public CarrierRate()
    • Method Detail

      • getCarrierName

        public String getCarrierName()
        Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
        Returns:
        value or null for none
      • setCarrierName

        public CarrierRate setCarrierName(String carrierName)
        Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported carriers can be retrieved via the `getSupportedCarriers` method. Required.
        Parameters:
        carrierName - carrierName or null for none
      • getCarrierService

        public String getCarrierService()
        Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
        Returns:
        value or null for none
      • setCarrierService

        public CarrierRate setCarrierService(String carrierService)
        Carrier service, such as `"ground"` or `"2 days"`. The list of supported services for a carrier can be retrieved via the `getSupportedCarriers` method. Required.
        Parameters:
        carrierService - carrierService or null for none
      • getFlatAdjustment

        public Price getFlatAdjustment()
        Additive shipping rate modifier. Can be negative. For example `{ "value": "1", "currency" : "USD" }` adds $1 to the rate, `{ "value": "-3", "currency" : "USD" }` removes $3 from the rate. Optional.
        Returns:
        value or null for none
      • setFlatAdjustment

        public CarrierRate setFlatAdjustment(Price flatAdjustment)
        Additive shipping rate modifier. Can be negative. For example `{ "value": "1", "currency" : "USD" }` adds $1 to the rate, `{ "value": "-3", "currency" : "USD" }` removes $3 from the rate. Optional.
        Parameters:
        flatAdjustment - flatAdjustment or null for none
      • getName

        public String getName()
        Name of the carrier rate. Must be unique per rate group. Required.
        Returns:
        value or null for none
      • setName

        public CarrierRate setName(String name)
        Name of the carrier rate. Must be unique per rate group. Required.
        Parameters:
        name - name or null for none
      • getOriginPostalCode

        public String getOriginPostalCode()
        Shipping origin for this carrier rate. Required.
        Returns:
        value or null for none
      • setOriginPostalCode

        public CarrierRate setOriginPostalCode(String originPostalCode)
        Shipping origin for this carrier rate. Required.
        Parameters:
        originPostalCode - originPostalCode or null for none
      • getPercentageAdjustment

        public String getPercentageAdjustment()
        Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `"5.4"` increases the rate by 5.4%, `"-3"` decreases the rate by 3%. Optional.
        Returns:
        value or null for none
      • setPercentageAdjustment

        public CarrierRate setPercentageAdjustment(String percentageAdjustment)
        Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `"5.4"` increases the rate by 5.4%, `"-3"` decreases the rate by 3%. Optional.
        Parameters:
        percentageAdjustment - percentageAdjustment or null for none

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy