class Google::Apis::AdexchangebuyerV1_4::Proposal

Represents a proposal in the marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Each field in a proposal can have one of the following setting: (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller.

Attributes

billed_buyer[RW]

Reference to the buyer that will get billed for this proposal. (readonly) Corresponds to the JSON property `billedBuyer` @return [Google::Apis::AdexchangebuyerV1_4::Buyer]

buyer[RW]

Reference to the buyer on the proposal. (readonly, except on create) Corresponds to the JSON property `buyer` @return [Google::Apis::AdexchangebuyerV1_4::Buyer]

buyer_contacts[RW]

Optional contact information fort the buyer. (seller-readonly) Corresponds to the JSON property `buyerContacts` @return [Array<Google::Apis::AdexchangebuyerV1_4::ContactInformation>]

buyer_private_data[RW]

Private data for buyer. (hidden from seller). Corresponds to the JSON property `buyerPrivateData` @return [Google::Apis::AdexchangebuyerV1_4::PrivateData]

has_buyer_signed_off[RW]

When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) Corresponds to the JSON property `hasBuyerSignedOff` @return [Boolean]

has_buyer_signed_off?[RW]

When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) Corresponds to the JSON property `hasBuyerSignedOff` @return [Boolean]

has_seller_signed_off[RW]

When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) Corresponds to the JSON property `hasSellerSignedOff` @return [Boolean]

has_seller_signed_off?[RW]

When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) Corresponds to the JSON property `hasSellerSignedOff` @return [Boolean]

inventory_source[RW]

What exchange will provide this inventory (readonly, except on create). Corresponds to the JSON property `inventorySource` @return [String]

is_renegotiating[RW]

True if the proposal is being renegotiated (readonly). Corresponds to the JSON property `isRenegotiating` @return [Boolean]

is_renegotiating?[RW]

True if the proposal is being renegotiated (readonly). Corresponds to the JSON property `isRenegotiating` @return [Boolean]

is_setup_complete[RW]

True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Corresponds to the JSON property `isSetupComplete` @return [Boolean]

is_setup_complete?[RW]

True, if the buyside inventory setup is complete for this proposal. (readonly, except via OrderSetupCompleted action) Corresponds to the JSON property `isSetupComplete` @return [Boolean]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ adexchangebuyer#proposal”. Corresponds to the JSON property `kind` @return [String]

labels[RW]

List of labels associated with the proposal. (readonly) Corresponds to the JSON property `labels` @return [Array<Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel>]

last_updater_or_commentor_role[RW]

The role of the last user that either updated the proposal or left a comment. ( readonly) Corresponds to the JSON property `lastUpdaterOrCommentorRole` @return [String]

last_updater_role[RW]

Corresponds to the JSON property `lastUpdaterRole` @return [String]

name[RW]

The name for the proposal (updatable) Corresponds to the JSON property `name` @return [String]

negotiation_id[RW]

Optional negotiation id if this proposal is a preferred deal proposal. Corresponds to the JSON property `negotiationId` @return [String]

originator_role[RW]

Indicates whether the buyer/seller created the proposal.(readonly) Corresponds to the JSON property `originatorRole` @return [String]

private_auction_id[RW]

Optional private auction id if this proposal is a private auction proposal. Corresponds to the JSON property `privateAuctionId` @return [String]

proposal_id[RW]

The unique id of the proposal. (readonly). Corresponds to the JSON property `proposalId` @return [String]

proposal_state[RW]

The current state of the proposal. (readonly) Corresponds to the JSON property `proposalState` @return [String]

revision_number[RW]

The revision number for the proposal (readonly). Corresponds to the JSON property `revisionNumber` @return [String]

revision_time_ms[RW]

The time (ms since epoch) when the proposal was last revised (readonly). Corresponds to the JSON property `revisionTimeMs` @return [String]

seller[RW]

Reference to the seller on the proposal. (readonly, except on create) Corresponds to the JSON property `seller` @return [Google::Apis::AdexchangebuyerV1_4::Seller]

seller_contacts[RW]

Optional contact information for the seller (buyer-readonly). Corresponds to the JSON property `sellerContacts` @return [Array<Google::Apis::AdexchangebuyerV1_4::ContactInformation>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/adexchangebuyer_v1_4/classes.rb, line 2743
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adexchangebuyer_v1_4/classes.rb, line 2748
def update!(**args)
  @billed_buyer = args[:billed_buyer] if args.key?(:billed_buyer)
  @buyer = args[:buyer] if args.key?(:buyer)
  @buyer_contacts = args[:buyer_contacts] if args.key?(:buyer_contacts)
  @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data)
  @has_buyer_signed_off = args[:has_buyer_signed_off] if args.key?(:has_buyer_signed_off)
  @has_seller_signed_off = args[:has_seller_signed_off] if args.key?(:has_seller_signed_off)
  @inventory_source = args[:inventory_source] if args.key?(:inventory_source)
  @is_renegotiating = args[:is_renegotiating] if args.key?(:is_renegotiating)
  @is_setup_complete = args[:is_setup_complete] if args.key?(:is_setup_complete)
  @kind = args[:kind] if args.key?(:kind)
  @labels = args[:labels] if args.key?(:labels)
  @last_updater_or_commentor_role = args[:last_updater_or_commentor_role] if args.key?(:last_updater_or_commentor_role)
  @last_updater_role = args[:last_updater_role] if args.key?(:last_updater_role)
  @name = args[:name] if args.key?(:name)
  @negotiation_id = args[:negotiation_id] if args.key?(:negotiation_id)
  @originator_role = args[:originator_role] if args.key?(:originator_role)
  @private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id)
  @proposal_id = args[:proposal_id] if args.key?(:proposal_id)
  @proposal_state = args[:proposal_state] if args.key?(:proposal_state)
  @revision_number = args[:revision_number] if args.key?(:revision_number)
  @revision_time_ms = args[:revision_time_ms] if args.key?(:revision_time_ms)
  @seller = args[:seller] if args.key?(:seller)
  @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts)
end