Class: Google::Apis::ContentV2_1::OrderReportTransaction

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

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

Returns a new instance of OrderReportTransaction



4359
4360
4361
# File 'generated/google/apis/content_v2_1/classes.rb', line 4359

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

Instance Attribute Details

#disbursement_amountGoogle::Apis::ContentV2_1::Price

The disbursement amount. Corresponds to the JSON property disbursementAmount



4317
4318
4319
# File 'generated/google/apis/content_v2_1/classes.rb', line 4317

def disbursement_amount
  @disbursement_amount
end

#disbursement_creation_dateString

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

Returns:

  • (String)


4322
4323
4324
# File 'generated/google/apis/content_v2_1/classes.rb', line 4322

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)


4327
4328
4329
# File 'generated/google/apis/content_v2_1/classes.rb', line 4327

def disbursement_date
  @disbursement_date
end

#disbursement_idString

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

Returns:

  • (String)


4332
4333
4334
# File 'generated/google/apis/content_v2_1/classes.rb', line 4332

def disbursement_id
  @disbursement_id
end

#merchant_idFixnum

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

Returns:

  • (Fixnum)


4337
4338
4339
# File 'generated/google/apis/content_v2_1/classes.rb', line 4337

def merchant_id
  @merchant_id
end

#merchant_order_idString

Merchant-provided id of the order. Corresponds to the JSON property merchantOrderId

Returns:

  • (String)


4342
4343
4344
# File 'generated/google/apis/content_v2_1/classes.rb', line 4342

def merchant_order_id
  @merchant_order_id
end

#order_idString

The id of the order. Corresponds to the JSON property orderId

Returns:

  • (String)


4347
4348
4349
# File 'generated/google/apis/content_v2_1/classes.rb', line 4347

def order_id
  @order_id
end

#product_amountGoogle::Apis::ContentV2_1::Amount

Total amount for the items. Corresponds to the JSON property productAmount



4352
4353
4354
# File 'generated/google/apis/content_v2_1/classes.rb', line 4352

def product_amount
  @product_amount
end

#transaction_dateString

The date of the transaction, in ISO 8601 format. Corresponds to the JSON property transactionDate

Returns:

  • (String)


4357
4358
4359
# File 'generated/google/apis/content_v2_1/classes.rb', line 4357

def transaction_date
  @transaction_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
# File 'generated/google/apis/content_v2_1/classes.rb', line 4364

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)
  @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
  @order_id = args[:order_id] if args.key?(:order_id)
  @product_amount = args[:product_amount] if args.key?(:product_amount)
  @transaction_date = args[:transaction_date] if args.key?(:transaction_date)
end