Class: Google::Apis::ContentV2_1::SettlementReport

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 reports detail order-level and item-level credits and debits between you and Google.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SettlementReport

Returns a new instance of SettlementReport.



13597
13598
13599
# File 'lib/google/apis/content_v2_1/classes.rb', line 13597

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

Instance Attribute Details

#end_dateString

The end date on which all transactions are included in the report, in ISO 8601 format. Corresponds to the JSON property endDate

Returns:

  • (String)


13555
13556
13557
# File 'lib/google/apis/content_v2_1/classes.rb', line 13555

def end_date
  @end_date
end

#kindString

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

Returns:

  • (String)


13561
13562
13563
# File 'lib/google/apis/content_v2_1/classes.rb', line 13561

def kind
  @kind
end

#previous_balanceGoogle::Apis::ContentV2_1::Price

The residual amount from the previous invoice. This is set only if the previous invoices are not paid because of negative balance. Corresponds to the JSON property previousBalance



13567
13568
13569
# File 'lib/google/apis/content_v2_1/classes.rb', line 13567

def previous_balance
  @previous_balance
end

#settlement_idString

The ID of the settlement report. Corresponds to the JSON property settlementId

Returns:

  • (String)


13572
13573
13574
# File 'lib/google/apis/content_v2_1/classes.rb', line 13572

def settlement_id
  @settlement_id
end

#start_dateString

The start date on which all transactions are included in the report, in ISO 8601 format. Corresponds to the JSON property startDate

Returns:

  • (String)


13578
13579
13580
# File 'lib/google/apis/content_v2_1/classes.rb', line 13578

def start_date
  @start_date
end

#transfer_amountGoogle::Apis::ContentV2_1::Price

The money due to the merchant. Corresponds to the JSON property transferAmount



13583
13584
13585
# File 'lib/google/apis/content_v2_1/classes.rb', line 13583

def transfer_amount
  @transfer_amount
end

#transfer_dateString

Date on which transfer for this payment was initiated by Google, in ISO 8601 format. Corresponds to the JSON property transferDate

Returns:

  • (String)


13589
13590
13591
# File 'lib/google/apis/content_v2_1/classes.rb', line 13589

def transfer_date
  @transfer_date
end

#transfer_idsArray<String>

The list of bank identifiers used for the transfer. For example, Trace ID for Federal Automated Clearing House (ACH). This may also be known as the Wire ID. Corresponds to the JSON property transferIds

Returns:

  • (Array<String>)


13595
13596
13597
# File 'lib/google/apis/content_v2_1/classes.rb', line 13595

def transfer_ids
  @transfer_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
# File 'lib/google/apis/content_v2_1/classes.rb', line 13602

def update!(**args)
  @end_date = args[:end_date] if args.key?(:end_date)
  @kind = args[:kind] if args.key?(:kind)
  @previous_balance = args[:previous_balance] if args.key?(:previous_balance)
  @settlement_id = args[:settlement_id] if args.key?(:settlement_id)
  @start_date = args[:start_date] if args.key?(:start_date)
  @transfer_amount = args[:transfer_amount] if args.key?(:transfer_amount)
  @transfer_date = args[:transfer_date] if args.key?(:transfer_date)
  @transfer_ids = args[:transfer_ids] if args.key?(:transfer_ids)
end