Class: Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest

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

Returns a new instance of OrderpaymentsNotifyChargeRequest



5069
5070
5071
# File 'generated/google/apis/content_v2/classes.rb', line 5069

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

Instance Attribute Details

#charge_stateString

Whether charge was successful. Corresponds to the JSON property chargeState

Returns:

  • (String)


5062
5063
5064
# File 'generated/google/apis/content_v2/classes.rb', line 5062

def charge_state
  @charge_state
end

#invoice_idString

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

Returns:

  • (String)


5067
5068
5069
# File 'generated/google/apis/content_v2/classes.rb', line 5067

def invoice_id
  @invoice_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5074
5075
5076
5077
# File 'generated/google/apis/content_v2/classes.rb', line 5074

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