Class: Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption

Returns a new instance of OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.



5740
5741
5742
# File 'generated/google/apis/content_v2/classes.rb', line 5740

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

Optional description of the refund reason. Corresponds to the JSON property description

Returns:

  • (String)


5717
5718
5719
# File 'generated/google/apis/content_v2/classes.rb', line 5717

def description
  @description
end

#reasonString

[required] 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" Corresponds to the JSON property reason

Returns:

  • (String)


5738
5739
5740
# File 'generated/google/apis/content_v2/classes.rb', line 5738

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5745
5746
5747
5748
# File 'generated/google/apis/content_v2/classes.rb', line 5745

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @reason = args[:reason] if args.key?(:reason)
end