Class: Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest

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

Returns a new instance of OrderpaymentsNotifyChargeRequest



4831
4832
4833
# File 'generated/google/apis/content_v2_1/classes.rb', line 4831

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

Instance Attribute Details

#charge_stateString

Whether charge was successful. Corresponds to the JSON property chargeState

Returns:

  • (String)


4824
4825
4826
# File 'generated/google/apis/content_v2_1/classes.rb', line 4824

def charge_state
  @charge_state
end

#invoice_idsArray<String>

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

Returns:

  • (Array<String>)


4829
4830
4831
# File 'generated/google/apis/content_v2_1/classes.rb', line 4829

def invoice_ids
  @invoice_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4836
4837
4838
4839
# File 'generated/google/apis/content_v2_1/classes.rb', line 4836

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