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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

Settlement transactions give a detailed breakdown of the settlement report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SettlementTransaction

Returns a new instance of SettlementTransaction.



13217
13218
13219
# File 'lib/google/apis/content_v2_1/classes.rb', line 13217

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



13199
13200
13201
# File 'lib/google/apis/content_v2_1/classes.rb', line 13199

def amount
  @amount
end

#identifiersGoogle::Apis::ContentV2_1::SettlementTransactionIdentifiers

Identifiers of the transaction. Corresponds to the JSON property identifiers



13204
13205
13206
# File 'lib/google/apis/content_v2_1/classes.rb', line 13204

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)


13210
13211
13212
# File 'lib/google/apis/content_v2_1/classes.rb', line 13210

def kind
  @kind
end

#transactionGoogle::Apis::ContentV2_1::SettlementTransactionTransaction

Details of the transaction. Corresponds to the JSON property transaction



13215
13216
13217
# File 'lib/google/apis/content_v2_1/classes.rb', line 13215

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13222
13223
13224
13225
13226
13227
# File 'lib/google/apis/content_v2_1/classes.rb', line 13222

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