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

com.google.api.services.content.model.OrderRefund Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.content.model;

/**
 * Model definition for OrderRefund.
 *
 * 

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. */ @SuppressWarnings("javadoc") public final class OrderRefund extends com.google.api.client.json.GenericJson { /** * The actor that created the refund. * * Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - * "`googlePayments`" - "`googleSabre`" - "`merchant`" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String actor; /** * The amount that is refunded. * The value may be {@code null}. */ @com.google.api.client.util.Key private Price amount; /** * Date on which the item has been created, in ISO 8601 format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String creationDate; /** * The reason for the refund. * * Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - * "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - * "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - * "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" * - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - * "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - * "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - * "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - * "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - * "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - * "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" * - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - * "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - * "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String reason; /** * The explanation of the reason. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String reasonText; /** * The actor that created the refund. * * Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - * "`googlePayments`" - "`googleSabre`" - "`merchant`" * @return value or {@code null} for none */ public java.lang.String getActor() { return actor; } /** * The actor that created the refund. * * Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - * "`googlePayments`" - "`googleSabre`" - "`merchant`" * @param actor actor or {@code null} for none */ public OrderRefund setActor(java.lang.String actor) { this.actor = actor; return this; } /** * The amount that is refunded. * @return value or {@code null} for none */ public Price getAmount() { return amount; } /** * The amount that is refunded. * @param amount amount or {@code null} for none */ public OrderRefund setAmount(Price amount) { this.amount = amount; return this; } /** * Date on which the item has been created, in ISO 8601 format. * @return value or {@code null} for none */ public java.lang.String getCreationDate() { return creationDate; } /** * Date on which the item has been created, in ISO 8601 format. * @param creationDate creationDate or {@code null} for none */ public OrderRefund setCreationDate(java.lang.String creationDate) { this.creationDate = creationDate; return this; } /** * The reason for the refund. * * Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - * "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - * "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - * "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" * - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - * "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - * "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - * "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - * "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - * "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - * "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" * - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - * "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - * "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" * @return value or {@code null} for none */ public java.lang.String getReason() { return reason; } /** * The reason for the refund. * * Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - * "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - * "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - * "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" * - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - * "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - * "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - * "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - * "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - * "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - * "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" * - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - * "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - * "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" * @param reason reason or {@code null} for none */ public OrderRefund setReason(java.lang.String reason) { this.reason = reason; return this; } /** * The explanation of the reason. * @return value or {@code null} for none */ public java.lang.String getReasonText() { return reasonText; } /** * The explanation of the reason. * @param reasonText reasonText or {@code null} for none */ public OrderRefund setReasonText(java.lang.String reasonText) { this.reasonText = reasonText; return this; } @Override public OrderRefund set(String fieldName, Object value) { return (OrderRefund) super.set(fieldName, value); } @Override public OrderRefund clone() { return (OrderRefund) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy