Class: Google::Apis::ContentV2_1::SettlementTransaction

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

Overview

Settlement transactions give a detailed breakdown of the settlement report. (= = resource_for v2.1.settlementtransactions ==)

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

Returns a new instance of SettlementTransaction.



10680
10681
10682
# File 'generated/google/apis/content_v2_1/classes.rb', line 10680

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

Instance Attribute Details

#amountGoogle::Apis::ContentV2_1::SettlementTransactionAmount

The amount for the transaction. Corresponds to the JSON property amount



10662
10663
10664
# File 'generated/google/apis/content_v2_1/classes.rb', line 10662

def amount
  @amount
end

#identifiersGoogle::Apis::ContentV2_1::SettlementTransactionIdentifiers

Identifiers of the transaction. Corresponds to the JSON property identifiers



10667
10668
10669
# File 'generated/google/apis/content_v2_1/classes.rb', line 10667

def identifiers
  @identifiers
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# settlementTransaction" Corresponds to the JSON property kind

Returns:

  • (String)


10673
10674
10675
# File 'generated/google/apis/content_v2_1/classes.rb', line 10673

def kind
  @kind
end

#transactionGoogle::Apis::ContentV2_1::SettlementTransactionTransaction

Details of the transaction. Corresponds to the JSON property transaction



10678
10679
10680
# File 'generated/google/apis/content_v2_1/classes.rb', line 10678

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10685
10686
10687
10688
10689
10690
# File 'generated/google/apis/content_v2_1/classes.rb', line 10685

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @identifiers = args[:identifiers] if args.key?(:identifiers)
  @kind = args[:kind] if args.key?(:kind)
  @transaction = args[:transaction] if args.key?(:transaction)
end