Class: Google::Apis::ContentV2_1::OrderReportDisbursement

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

Order disbursement. All methods require the payment analyst role. (== resource_for v2.orderreports ==) (== resource_for v2.1.orderreports ==)

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

Returns a new instance of OrderReportDisbursement.



5263
5264
5265
# File 'generated/google/apis/content_v2_1/classes.rb', line 5263

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

Instance Attribute Details

#disbursement_amountGoogle::Apis::ContentV2_1::Price

The disbursement amount. Corresponds to the JSON property disbursementAmount



5241
5242
5243
# File 'generated/google/apis/content_v2_1/classes.rb', line 5241

def disbursement_amount
  @disbursement_amount
end

#disbursement_creation_dateString

The disbursement date, in ISO 8601 format. Corresponds to the JSON property disbursementCreationDate

Returns:

  • (String)


5246
5247
5248
# File 'generated/google/apis/content_v2_1/classes.rb', line 5246

def disbursement_creation_date
  @disbursement_creation_date
end

#disbursement_dateString

The date the disbursement was initiated, in ISO 8601 format. Corresponds to the JSON property disbursementDate

Returns:

  • (String)


5251
5252
5253
# File 'generated/google/apis/content_v2_1/classes.rb', line 5251

def disbursement_date
  @disbursement_date
end

#disbursement_idString

The ID of the disbursement. Corresponds to the JSON property disbursementId

Returns:

  • (String)


5256
5257
5258
# File 'generated/google/apis/content_v2_1/classes.rb', line 5256

def disbursement_id
  @disbursement_id
end

#merchant_idFixnum

The ID of the managing account. Corresponds to the JSON property merchantId

Returns:

  • (Fixnum)


5261
5262
5263
# File 'generated/google/apis/content_v2_1/classes.rb', line 5261

def merchant_id
  @merchant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5268
5269
5270
5271
5272
5273
5274
# File 'generated/google/apis/content_v2_1/classes.rb', line 5268

def update!(**args)
  @disbursement_amount = args[:disbursement_amount] if args.key?(:disbursement_amount)
  @disbursement_creation_date = args[:disbursement_creation_date] if args.key?(:disbursement_creation_date)
  @disbursement_date = args[:disbursement_date] if args.key?(:disbursement_date)
  @disbursement_id = args[:disbursement_id] if args.key?(:disbursement_id)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
end