Class: Google::Apis::AdexchangebuyerV1_4::DealServingMetadataDealPauseStatus
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::DealServingMetadataDealPauseStatus
- 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
-
#buyer_pause_reason ⇒ String
Corresponds to the JSON property
buyerPauseReason
. -
#first_paused_by ⇒ String
If the deal is paused, records which party paused the deal first.
-
#has_buyer_paused ⇒ Boolean
(also: #has_buyer_paused?)
Corresponds to the JSON property
hasBuyerPaused
. -
#has_seller_paused ⇒ Boolean
(also: #has_seller_paused?)
Corresponds to the JSON property
hasSellerPaused
. -
#seller_pause_reason ⇒ String
Corresponds to the JSON property
sellerPauseReason
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DealServingMetadataDealPauseStatus
constructor
A new instance of DealServingMetadataDealPauseStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DealServingMetadataDealPauseStatus
Returns a new instance of DealServingMetadataDealPauseStatus
1272 1273 1274 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1272 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buyer_pause_reason ⇒ String
Corresponds to the JSON property buyerPauseReason
1248 1249 1250 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1248 def buyer_pause_reason @buyer_pause_reason end |
#first_paused_by ⇒ String
If the deal is paused, records which party paused the deal first.
Corresponds to the JSON property firstPausedBy
1253 1254 1255 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1253 def first_paused_by @first_paused_by end |
#has_buyer_paused ⇒ Boolean Also known as: has_buyer_paused?
Corresponds to the JSON property hasBuyerPaused
1258 1259 1260 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1258 def has_buyer_paused @has_buyer_paused end |
#has_seller_paused ⇒ Boolean Also known as: has_seller_paused?
Corresponds to the JSON property hasSellerPaused
1264 1265 1266 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1264 def has_seller_paused @has_seller_paused end |
#seller_pause_reason ⇒ String
Corresponds to the JSON property sellerPauseReason
1270 1271 1272 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1270 def seller_pause_reason @seller_pause_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1277 1278 1279 1280 1281 1282 1283 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1277 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 |