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



5583
5584
5585
# File 'generated/google/apis/content_v2/classes.rb', line 5583

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

Instance Attribute Details

#charge_stateString

Whether charge was successful. Corresponds to the JSON property chargeState

Returns:

  • (String)


5571
5572
5573
# File 'generated/google/apis/content_v2/classes.rb', line 5571

def charge_state
  @charge_state
end

#invoice_idString

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

Returns:

  • (String)


5576
5577
5578
# File 'generated/google/apis/content_v2/classes.rb', line 5576

def invoice_id
  @invoice_id
end

#invoice_idsArray<String>

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

Returns:

  • (Array<String>)


5581
5582
5583
# File 'generated/google/apis/content_v2/classes.rb', line 5581

def invoice_ids
  @invoice_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5588
5589
5590
5591
5592
# File 'generated/google/apis/content_v2/classes.rb', line 5588

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