Class: Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersCustomBatchRequestEntryRefundItemShipping

Returns a new instance of OrdersCustomBatchRequestEntryRefundItemShipping.



7278
7279
7280
# File 'generated/google/apis/content_v2_1/classes.rb', line 7278

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2_1::Price

The amount that is refunded. If this is not the first refund for the shipment, this should be the newly refunded amount. Corresponds to the JSON property amount



7269
7270
7271
# File 'generated/google/apis/content_v2_1/classes.rb', line 7269

def amount
  @amount
end

#full_refundBoolean Also known as: full_refund?

If set to true, all shipping costs for the order will be refunded. If this is true, amount should not be provided and will be ignored. Corresponds to the JSON property fullRefund

Returns:

  • (Boolean)


7275
7276
7277
# File 'generated/google/apis/content_v2_1/classes.rb', line 7275

def full_refund
  @full_refund
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7283
7284
7285
7286
# File 'generated/google/apis/content_v2_1/classes.rb', line 7283

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