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

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

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






OrdersCustomBatchRequestEntryRefundItemItem (Content API for Shopping v2.1-rev20240609-2.0.0)












com.google.api.services.content.model

Class OrdersCustomBatchRequestEntryRefundItemItem

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class OrdersCustomBatchRequestEntryRefundItemItem
    extends com.google.api.client.json.GenericJson
    Model definition for OrdersCustomBatchRequestEntryRefundItemItem.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • OrdersCustomBatchRequestEntryRefundItemItem

        public OrdersCustomBatchRequestEntryRefundItemItem()
    • Method Detail

      • getAmount

        public MonetaryAmount getAmount()
        The total amount that is refunded. (for example, refunding $5 each for 2 products should be done by setting quantity to 2 and amount to 10$) In case of multiple refunds, this should be the amount you currently want to refund to the customer.
        Returns:
        value or null for none
      • setAmount

        public OrdersCustomBatchRequestEntryRefundItemItem setAmount(MonetaryAmount amount)
        The total amount that is refunded. (for example, refunding $5 each for 2 products should be done by setting quantity to 2 and amount to 10$) In case of multiple refunds, this should be the amount you currently want to refund to the customer.
        Parameters:
        amount - amount or null for none
      • getFullRefund

        public Boolean getFullRefund()
        If true, the full item will be refunded. If this is true, amount shouldn't be provided and will be ignored.
        Returns:
        value or null for none
      • setFullRefund

        public OrdersCustomBatchRequestEntryRefundItemItem setFullRefund(Boolean fullRefund)
        If true, the full item will be refunded. If this is true, amount shouldn't be provided and will be ignored.
        Parameters:
        fullRefund - fullRefund or null for none
      • getLineItemId

        public String getLineItemId()
        The ID of the line item. Either lineItemId or productId is required.
        Returns:
        value or null for none
      • getProductId

        public String getProductId()
        The ID of the product. This is the REST ID used in the products service. Either lineItemId or productId is required.
        Returns:
        value or null for none
      • setProductId

        public OrdersCustomBatchRequestEntryRefundItemItem setProductId(String productId)
        The ID of the product. This is the REST ID used in the products service. Either lineItemId or productId is required.
        Parameters:
        productId - productId or null for none
      • getQuantity

        public Integer getQuantity()
        The number of products that are refunded.
        Returns:
        value or null for none

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy