Class: Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/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



1614
1615
1616
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1614

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

Instance Attribute Details

#invoice_idString

Invoice ID from orderInvoice service that corresponds to the charge. Corresponds to the JSON property invoiceId

Returns:

  • (String)


1607
1608
1609
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1607

def invoice_id
  @invoice_id
end

#refund_stateString

Whether refund was successful. Corresponds to the JSON property refundState

Returns:

  • (String)


1612
1613
1614
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1612

def refund_state
  @refund_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1619
1620
1621
1622
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1619

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