Class: Google::Apis::DfareportingV2_8::OrderDocument

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

Overview

Contains properties of a Planning order document.

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) ⇒ OrderDocument

Returns a new instance of OrderDocument



7868
7869
7870
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7868

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

Instance Attribute Details

#account_idFixnum

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

Returns:

  • (Fixnum)


7781
7782
7783
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7781

def 
  @account_id
end

#advertiser_idFixnum

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

Returns:

  • (Fixnum)


7786
7787
7788
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7786

def advertiser_id
  @advertiser_id
end

#amended_order_document_idFixnum

The amended order document ID of this order document. An order document can be created by optionally amending another order document so that the change history can be preserved. Corresponds to the JSON property amendedOrderDocumentId

Returns:

  • (Fixnum)


7793
7794
7795
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7793

def amended_order_document_id
  @amended_order_document_id
end

#approved_by_user_profile_idsArray<Fixnum>

IDs of users who have approved this order document. Corresponds to the JSON property approvedByUserProfileIds

Returns:

  • (Array<Fixnum>)


7798
7799
7800
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7798

def 
  @approved_by_user_profile_ids
end

#cancelledBoolean Also known as: cancelled?

Whether this order document is cancelled. Corresponds to the JSON property cancelled

Returns:

  • (Boolean)


7803
7804
7805
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7803

def cancelled
  @cancelled
end

#created_infoGoogle::Apis::DfareportingV2_8::LastModifiedInfo

Modification timestamp. Corresponds to the JSON property createdInfo



7809
7810
7811
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7809

def created_info
  @created_info
end

#effective_dateDate

Effective date of this order document. Corresponds to the JSON property effectiveDate

Returns:

  • (Date)


7814
7815
7816
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7814

def effective_date
  @effective_date
end

#idFixnum

ID of this order document. Corresponds to the JSON property id

Returns:

  • (Fixnum)


7819
7820
7821
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7819

def id
  @id
end

#kindString

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

Returns:

  • (String)


7825
7826
7827
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7825

def kind
  @kind
end

#last_sent_recipientsArray<String>

List of email addresses that received the last sent document. Corresponds to the JSON property lastSentRecipients

Returns:

  • (Array<String>)


7830
7831
7832
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7830

def last_sent_recipients
  @last_sent_recipients
end

#last_sent_timeDateTime

Timestamp of the last email sent with this order document. Corresponds to the JSON property lastSentTime

Returns:

  • (DateTime)


7835
7836
7837
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7835

def last_sent_time
  @last_sent_time
end

#order_idFixnum

ID of the order from which this order document is created. Corresponds to the JSON property orderId

Returns:

  • (Fixnum)


7840
7841
7842
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7840

def order_id
  @order_id
end

#project_idFixnum

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

Returns:

  • (Fixnum)


7845
7846
7847
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7845

def project_id
  @project_id
end

#signedBoolean Also known as: signed?

Whether this order document has been signed. Corresponds to the JSON property signed

Returns:

  • (Boolean)


7850
7851
7852
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7850

def signed
  @signed
end

#subaccount_idFixnum

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

Returns:

  • (Fixnum)


7856
7857
7858
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7856

def subaccount_id
  @subaccount_id
end

#titleString

Title of this order document. Corresponds to the JSON property title

Returns:

  • (String)


7861
7862
7863
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7861

def title
  @title
end

#typeString

Type of this order document Corresponds to the JSON property type

Returns:

  • (String)


7866
7867
7868
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7866

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 7873

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @amended_order_document_id = args[:amended_order_document_id] if args.key?(:amended_order_document_id)
  @approved_by_user_profile_ids = args[:approved_by_user_profile_ids] if args.key?(:approved_by_user_profile_ids)
  @cancelled = args[:cancelled] if args.key?(:cancelled)
  @created_info = args[:created_info] if args.key?(:created_info)
  @effective_date = args[:effective_date] if args.key?(:effective_date)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @last_sent_recipients = args[:last_sent_recipients] if args.key?(:last_sent_recipients)
  @last_sent_time = args[:last_sent_time] if args.key?(:last_sent_time)
  @order_id = args[:order_id] if args.key?(:order_id)
  @project_id = args[:project_id] if args.key?(:project_id)
  @signed = args[:signed] if args.key?(:signed)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end