Class: Google::Apis::AuthorizedbuyersmarketplaceV1::Proposal
- Inherits:
-
Object
- Object
- Google::Apis::AuthorizedbuyersmarketplaceV1::Proposal
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb
Overview
Represents a proposal in the Marketplace. A proposal is the unit of negotiation between a seller and a buyer.
Instance Attribute Summary collapse
-
#billed_buyer ⇒ String
Output only.
-
#buyer ⇒ String
Output only.
-
#buyer_contacts ⇒ Array<Google::Apis::AuthorizedbuyersmarketplaceV1::Contact>
Contact information for the buyer.
-
#buyer_private_data ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::PrivateData
Buyers are allowed to store certain types of private data in a proposal or deal.
-
#client ⇒ String
Output only.
-
#deal_type ⇒ String
Output only.
-
#display_name ⇒ String
Output only.
-
#is_renegotiating ⇒ Boolean
(also: #is_renegotiating?)
Output only.
-
#last_updater_or_commentor_role ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#notes ⇒ Array<Google::Apis::AuthorizedbuyersmarketplaceV1::Note>
A list of notes from the buyer and the seller attached to this proposal.
-
#originator_role ⇒ String
Output only.
-
#pausing_consented ⇒ Boolean
(also: #pausing_consented?)
Whether pausing is allowed for the proposal.
-
#proposal_revision ⇒ Fixnum
Output only.
-
#publisher_profile ⇒ String
Immutable.
-
#seller_contacts ⇒ Array<Google::Apis::AuthorizedbuyersmarketplaceV1::Contact>
Output only.
-
#state ⇒ String
Output only.
-
#terms_and_conditions ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Proposal
constructor
A new instance of Proposal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Proposal
Returns a new instance of Proposal.
1615 1616 1617 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1615 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billed_buyer ⇒ String
Output only. When the client field is populated, this field refers to the
buyer who creates and manages the client buyer and gets billed on behalf of
the client buyer; when the buyer field is populated, this field is the same
value as buyer. Format : buyers/buyerAccountId`
Corresponds to the JSON propertybilledBuyer`
1501 1502 1503 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1501 def billed_buyer @billed_buyer end |
#buyer ⇒ String
Output only. Refers to a buyer in The Realtime-bidding API. Format: buyers/
buyerAccountId`
Corresponds to the JSON propertybuyer`
1507 1508 1509 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1507 def buyer @buyer end |
#buyer_contacts ⇒ Array<Google::Apis::AuthorizedbuyersmarketplaceV1::Contact>
Contact information for the buyer.
Corresponds to the JSON property buyerContacts
1512 1513 1514 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1512 def buyer_contacts @buyer_contacts end |
#buyer_private_data ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::PrivateData
Buyers are allowed to store certain types of private data in a proposal or
deal.
Corresponds to the JSON property buyerPrivateData
1518 1519 1520 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1518 def buyer_private_data @buyer_private_data end |
#client ⇒ String
Output only. Refers to a Client. Format: buyers/buyerAccountId/clients/
clientAccountid`
Corresponds to the JSON propertyclient`
1524 1525 1526 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1524 def client @client end |
#deal_type ⇒ String
Output only. Type of deal the proposal contains.
Corresponds to the JSON property dealType
1529 1530 1531 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1529 def deal_type @deal_type end |
#display_name ⇒ String
Output only. The descriptive name for the proposal. Maximum length of 255
unicode characters is allowed. Control characters are not allowed. Buyers
cannot update this field. Note: Not to be confused with name, which is a
unique identifier of the proposal.
Corresponds to the JSON property displayName
1537 1538 1539 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1537 def display_name @display_name end |
#is_renegotiating ⇒ Boolean Also known as: is_renegotiating?
Output only. True if the proposal was previously finalized and is now being
renegotiated.
Corresponds to the JSON property isRenegotiating
1543 1544 1545 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1543 def is_renegotiating @is_renegotiating end |
#last_updater_or_commentor_role ⇒ String
Output only. The role of the last user that either updated the proposal or
left a comment.
Corresponds to the JSON property lastUpdaterOrCommentorRole
1550 1551 1552 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1550 def last_updater_or_commentor_role @last_updater_or_commentor_role end |
#name ⇒ String
Immutable. The name of the proposal serving as a unique identifier. Format:
buyers/accountId/proposals/proposalId
Corresponds to the JSON property name
1556 1557 1558 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1556 def name @name end |
#notes ⇒ Array<Google::Apis::AuthorizedbuyersmarketplaceV1::Note>
A list of notes from the buyer and the seller attached to this proposal.
Corresponds to the JSON property notes
1561 1562 1563 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1561 def notes @notes end |
#originator_role ⇒ String
Output only. Indicates whether the buyer/seller created the proposal.
Corresponds to the JSON property originatorRole
1566 1567 1568 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1566 def originator_role @originator_role end |
#pausing_consented ⇒ Boolean Also known as: pausing_consented?
Whether pausing is allowed for the proposal. This is a negotiable term between
buyers and publishers.
Corresponds to the JSON property pausingConsented
1572 1573 1574 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1572 def @pausing_consented end |
#proposal_revision ⇒ Fixnum
Output only. The revision number for the proposal. Each update to the proposal
or deal causes the proposal revision number to auto-increment. The buyer keeps
track of the last revision number they know of and pass it in when making an
update. If the head revision number on the server has since incremented, then
an ABORTED error is returned during the update operation to let the buyer know
that a subsequent update was made.
Corresponds to the JSON property proposalRevision
1583 1584 1585 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1583 def proposal_revision @proposal_revision end |
#publisher_profile ⇒ String
Immutable. Reference to the seller on the proposal. Format: buyers/
buyerAccountId/publisherProfiles/publisherProfileId`Note: This field may
be set only when creating the resource. Modifying this field while updating
the resource will result in an error.
Corresponds to the JSON propertypublisherProfile`
1591 1592 1593 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1591 def publisher_profile @publisher_profile end |
#seller_contacts ⇒ Array<Google::Apis::AuthorizedbuyersmarketplaceV1::Contact>
Output only. Contact information for the seller.
Corresponds to the JSON property sellerContacts
1596 1597 1598 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1596 def seller_contacts @seller_contacts end |
#state ⇒ String
Output only. Indicates the state of the proposal.
Corresponds to the JSON property state
1601 1602 1603 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1601 def state @state end |
#terms_and_conditions ⇒ String
Output only. The terms and conditions associated with this proposal. Accepting
a proposal implies acceptance of this field. This is created by the seller,
the buyer can only view it.
Corresponds to the JSON property termsAndConditions
1608 1609 1610 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1608 def terms_and_conditions @terms_and_conditions end |
#update_time ⇒ String
Output only. The time when the proposal was last revised.
Corresponds to the JSON property updateTime
1613 1614 1615 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1613 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 1620 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) @client = args[:client] if args.key?(:client) @deal_type = args[:deal_type] if args.key?(:deal_type) @display_name = args[:display_name] if args.key?(:display_name) @is_renegotiating = args[:is_renegotiating] if args.key?(:is_renegotiating) @last_updater_or_commentor_role = args[:last_updater_or_commentor_role] if args.key?(:last_updater_or_commentor_role) @name = args[:name] if args.key?(:name) @notes = args[:notes] if args.key?(:notes) @originator_role = args[:originator_role] if args.key?(:originator_role) @pausing_consented = args[:pausing_consented] if args.key?(:pausing_consented) @proposal_revision = args[:proposal_revision] if args.key?(:proposal_revision) @publisher_profile = args[:publisher_profile] if args.key?(:publisher_profile) @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts) @state = args[:state] if args.key?(:state) @terms_and_conditions = args[:terms_and_conditions] if args.key?(:terms_and_conditions) @update_time = args[:update_time] if args.key?(:update_time) end |