Class: Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest

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) ⇒ OrderpaymentsNotifyRefundRequest

Returns a new instance of OrderpaymentsNotifyRefundRequest



4882
4883
4884
# File 'generated/google/apis/content_v2_1/classes.rb', line 4882

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

Instance Attribute Details

#invoice_idsArray<String>

Invoice IDs from the orderinvoices service that correspond to the refund. Corresponds to the JSON property invoiceIds

Returns:

  • (Array<String>)


4875
4876
4877
# File 'generated/google/apis/content_v2_1/classes.rb', line 4875

def invoice_ids
  @invoice_ids
end

#refund_stateString

Whether refund was successful. Corresponds to the JSON property refundState

Returns:

  • (String)


4880
4881
4882
# File 'generated/google/apis/content_v2_1/classes.rb', line 4880

def refund_state
  @refund_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4887
4888
4889
4890
# File 'generated/google/apis/content_v2_1/classes.rb', line 4887

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