Class: Google::Apis::AdexchangebuyerV1_4::DealServingMetadataDealPauseStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb

Overview

Tracks which parties (if any) have paused a deal. The deal is considered paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused or the has_seller_paused bits can be set independently.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DealServingMetadataDealPauseStatus

Returns a new instance of DealServingMetadataDealPauseStatus.



1160
1161
1162
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1160

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

Instance Attribute Details

#buyer_pause_reasonString

Corresponds to the JSON property buyerPauseReason

Returns:

  • (String)


1136
1137
1138
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1136

def buyer_pause_reason
  @buyer_pause_reason
end

#first_paused_byString

If the deal is paused, records which party paused the deal first. Corresponds to the JSON property firstPausedBy

Returns:

  • (String)


1141
1142
1143
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1141

def first_paused_by
  @first_paused_by
end

#has_buyer_pausedBoolean Also known as: has_buyer_paused?

Corresponds to the JSON property hasBuyerPaused

Returns:

  • (Boolean)


1146
1147
1148
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1146

def has_buyer_paused
  @has_buyer_paused
end

#has_seller_pausedBoolean Also known as: has_seller_paused?

Corresponds to the JSON property hasSellerPaused

Returns:

  • (Boolean)


1152
1153
1154
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1152

def has_seller_paused
  @has_seller_paused
end

#seller_pause_reasonString

Corresponds to the JSON property sellerPauseReason

Returns:

  • (String)


1158
1159
1160
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1158

def seller_pause_reason
  @seller_pause_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1165
1166
1167
1168
1169
1170
1171
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1165

def update!(**args)
  @buyer_pause_reason = args[:buyer_pause_reason] if args.key?(:buyer_pause_reason)
  @first_paused_by = args[:first_paused_by] if args.key?(:first_paused_by)
  @has_buyer_paused = args[:has_buyer_paused] if args.key?(:has_buyer_paused)
  @has_seller_paused = args[:has_seller_paused] if args.key?(:has_seller_paused)
  @seller_pause_reason = args[:seller_pause_reason] if args.key?(:seller_pause_reason)
end