Class: Google::Apis::ContentV2::OrderReportTransaction

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/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.



5190
5191
5192
# File 'generated/google/apis/content_v2/classes.rb', line 5190

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

Instance Attribute Details

#disbursement_amountGoogle::Apis::ContentV2::Price

The disbursement amount. Corresponds to the JSON property disbursementAmount



5143
5144
5145
# File 'generated/google/apis/content_v2/classes.rb', line 5143

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)


5148
5149
5150
# File 'generated/google/apis/content_v2/classes.rb', line 5148

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)


5153
5154
5155
# File 'generated/google/apis/content_v2/classes.rb', line 5153

def disbursement_date
  @disbursement_date
end

#disbursement_idString

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

Returns:

  • (String)


5158
5159
5160
# File 'generated/google/apis/content_v2/classes.rb', line 5158

def disbursement_id
  @disbursement_id
end

#merchant_idFixnum

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

Returns:

  • (Fixnum)


5163
5164
5165
# File 'generated/google/apis/content_v2/classes.rb', line 5163

def merchant_id
  @merchant_id
end

#merchant_order_idString

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

Returns:

  • (String)


5168
5169
5170
# File 'generated/google/apis/content_v2/classes.rb', line 5168

def merchant_order_id
  @merchant_order_id
end

#order_idString

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

Returns:

  • (String)


5173
5174
5175
# File 'generated/google/apis/content_v2/classes.rb', line 5173

def order_id
  @order_id
end

#product_amountGoogle::Apis::ContentV2::Amount

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



5178
5179
5180
# File 'generated/google/apis/content_v2/classes.rb', line 5178

def product_amount
  @product_amount
end

#product_amount_with_remitted_taxGoogle::Apis::ContentV2::ProductAmount

Total amount with remitted tax for the items. Corresponds to the JSON property productAmountWithRemittedTax



5183
5184
5185
# File 'generated/google/apis/content_v2/classes.rb', line 5183

def product_amount_with_remitted_tax
  @product_amount_with_remitted_tax
end

#transaction_dateString

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

Returns:

  • (String)


5188
5189
5190
# File 'generated/google/apis/content_v2/classes.rb', line 5188

def transaction_date
  @transaction_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
# File 'generated/google/apis/content_v2/classes.rb', line 5195

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