Class: Google::Apis::ContentV2_1::OrderreturnsRefundOperation

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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderreturnsRefundOperation

Returns a new instance of OrderreturnsRefundOperation.



6076
6077
6078
# File 'generated/google/apis/content_v2_1/classes.rb', line 6076

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

Instance Attribute Details

#full_refundBoolean Also known as: full_refund?

If true, the item will be fully refunded. Corresponds to the JSON property fullRefund

Returns:

  • (Boolean)


6058
6059
6060
# File 'generated/google/apis/content_v2_1/classes.rb', line 6058

def full_refund
  @full_refund
end

#partial_refundGoogle::Apis::ContentV2_1::OrderreturnsPartialRefund

If this is set, the item will be partially refunded. Corresponds to the JSON property partialRefund



6064
6065
6066
# File 'generated/google/apis/content_v2_1/classes.rb', line 6064

def partial_refund
  @partial_refund
end

#reason_textString

The explanation of the reason. Corresponds to the JSON property reasonText

Returns:

  • (String)


6069
6070
6071
# File 'generated/google/apis/content_v2_1/classes.rb', line 6069

def reason_text
  @reason_text
end

#return_refund_reasonString

Code of the refund reason. Corresponds to the JSON property returnRefundReason

Returns:

  • (String)


6074
6075
6076
# File 'generated/google/apis/content_v2_1/classes.rb', line 6074

def return_refund_reason
  @return_refund_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6081
6082
6083
6084
6085
6086
# File 'generated/google/apis/content_v2_1/classes.rb', line 6081

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