Class: Google::Apis::DfareportingV4::Order

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

Overview

Describes properties of a Planning order.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Order

Returns a new instance of Order.



8540
8541
8542
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8540

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

Instance Attribute Details

#account_idFixnum

Account ID of this order. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


8442
8443
8444
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8442

def 
  @account_id
end

#advertiser_idFixnum

Advertiser ID of this order. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


8447
8448
8449
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8447

def advertiser_id
  @advertiser_id
end

#approver_user_profile_idsArray<Fixnum>

IDs for users that have to approve documents created for this order. Corresponds to the JSON property approverUserProfileIds

Returns:

  • (Array<Fixnum>)


8452
8453
8454
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8452

def 
  @approver_user_profile_ids
end

#buyer_invoice_idString

Buyer invoice ID associated with this order. Corresponds to the JSON property buyerInvoiceId

Returns:

  • (String)


8457
8458
8459
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8457

def buyer_invoice_id
  @buyer_invoice_id
end

#buyer_organization_nameString

Name of the buyer organization. Corresponds to the JSON property buyerOrganizationName

Returns:

  • (String)


8462
8463
8464
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8462

def buyer_organization_name
  @buyer_organization_name
end

#commentsString

Comments in this order. Corresponds to the JSON property comments

Returns:

  • (String)


8467
8468
8469
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8467

def comments
  @comments
end

#contactsArray<Google::Apis::DfareportingV4::OrderContact>

Contacts for this order. Corresponds to the JSON property contacts



8472
8473
8474
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8472

def contacts
  @contacts
end

#idFixnum

ID of this order. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (Fixnum)


8477
8478
8479
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8477

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#order". Corresponds to the JSON property kind

Returns:

  • (String)


8483
8484
8485
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8483

def kind
  @kind
end

#last_modified_infoGoogle::Apis::DfareportingV4::LastModifiedInfo

Modification timestamp. Corresponds to the JSON property lastModifiedInfo



8488
8489
8490
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8488

def last_modified_info
  @last_modified_info
end

#nameString

Name of this order. Corresponds to the JSON property name

Returns:

  • (String)


8493
8494
8495
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8493

def name
  @name
end

#notesString

Notes of this order. Corresponds to the JSON property notes

Returns:

  • (String)


8498
8499
8500
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8498

def notes
  @notes
end

#planning_term_idFixnum

ID of the terms and conditions template used in this order. Corresponds to the JSON property planningTermId

Returns:

  • (Fixnum)


8503
8504
8505
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8503

def planning_term_id
  @planning_term_id
end

#project_idFixnum

Project ID of this order. Corresponds to the JSON property projectId

Returns:

  • (Fixnum)


8508
8509
8510
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8508

def project_id
  @project_id
end

#seller_order_idString

Seller order ID associated with this order. Corresponds to the JSON property sellerOrderId

Returns:

  • (String)


8513
8514
8515
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8513

def seller_order_id
  @seller_order_id
end

#seller_organization_nameString

Name of the seller organization. Corresponds to the JSON property sellerOrganizationName

Returns:

  • (String)


8518
8519
8520
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8518

def seller_organization_name
  @seller_organization_name
end

#site_idArray<Fixnum>

Site IDs this order is associated with. Corresponds to the JSON property siteId

Returns:

  • (Array<Fixnum>)


8523
8524
8525
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8523

def site_id
  @site_id
end

#site_namesArray<String>

Free-form site names this order is associated with. Corresponds to the JSON property siteNames

Returns:

  • (Array<String>)


8528
8529
8530
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8528

def site_names
  @site_names
end

#subaccount_idFixnum

Subaccount ID of this order. Corresponds to the JSON property subaccountId

Returns:

  • (Fixnum)


8533
8534
8535
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8533

def subaccount_id
  @subaccount_id
end

#terms_and_conditionsString

Terms and conditions of this order. Corresponds to the JSON property termsAndConditions

Returns:

  • (String)


8538
8539
8540
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8538

def terms_and_conditions
  @terms_and_conditions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8545

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @approver_user_profile_ids = args[:approver_user_profile_ids] if args.key?(:approver_user_profile_ids)
  @buyer_invoice_id = args[:buyer_invoice_id] if args.key?(:buyer_invoice_id)
  @buyer_organization_name = args[:buyer_organization_name] if args.key?(:buyer_organization_name)
  @comments = args[:comments] if args.key?(:comments)
  @contacts = args[:contacts] if args.key?(:contacts)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info)
  @name = args[:name] if args.key?(:name)
  @notes = args[:notes] if args.key?(:notes)
  @planning_term_id = args[:planning_term_id] if args.key?(:planning_term_id)
  @project_id = args[:project_id] if args.key?(:project_id)
  @seller_order_id = args[:seller_order_id] if args.key?(:seller_order_id)
  @seller_organization_name = args[:seller_organization_name] if args.key?(:seller_organization_name)
  @site_id = args[:site_id] if args.key?(:site_id)
  @site_names = args[:site_names] if args.key?(:site_names)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @terms_and_conditions = args[:terms_and_conditions] if args.key?(:terms_and_conditions)
end