Class: Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest

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

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



5563
5564
5565
# File 'generated/google/apis/content_v2/classes.rb', line 5563

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

Instance Attribute Details

#invoice_idString

Deprecated. Please use invoiceIds instead. Corresponds to the JSON property invoiceId

Returns:

  • (String)


5551
5552
5553
# File 'generated/google/apis/content_v2/classes.rb', line 5551

def invoice_id
  @invoice_id
end

#invoice_idsArray<String>

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

Returns:

  • (Array<String>)


5556
5557
5558
# File 'generated/google/apis/content_v2/classes.rb', line 5556

def invoice_ids
  @invoice_ids
end

#refund_stateString

Whether refund was successful. Corresponds to the JSON property refundState

Returns:

  • (String)


5561
5562
5563
# File 'generated/google/apis/content_v2/classes.rb', line 5561

def refund_state
  @refund_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5568
5569
5570
5571
5572
# File 'generated/google/apis/content_v2/classes.rb', line 5568

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