Class: Google::Apis::AdsenseV1_4::Payment

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

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

Returns a new instance of Payment



969
970
971
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 969

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

Instance Attribute Details

#idString

Unique identifier of this Payment. Corresponds to the JSON property id

Returns:

  • (String)


946
947
948
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 946

def id
  @id
end

#kindString

Kind of resource this is, in this case adsense#payment. Corresponds to the JSON property kind

Returns:

  • (String)


951
952
953
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 951

def kind
  @kind
end

#payment_amountString

The amount to be paid. Corresponds to the JSON property paymentAmount

Returns:

  • (String)


956
957
958
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 956

def payment_amount
  @payment_amount
end

#payment_amount_currency_codeString

The currency code for the amount to be paid. Corresponds to the JSON property paymentAmountCurrencyCode

Returns:

  • (String)


961
962
963
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 961

def payment_amount_currency_code
  @payment_amount_currency_code
end

#payment_dateString

The date this payment was/will be credited to the user, or none if the payment threshold has not been met. Corresponds to the JSON property paymentDate

Returns:

  • (String)


967
968
969
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 967

def payment_date
  @payment_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



974
975
976
977
978
979
980
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 974

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @payment_amount = args[:payment_amount] if args.key?(:payment_amount)
  @payment_amount_currency_code = args[:payment_amount_currency_code] if args.key?(:payment_amount_currency_code)
  @payment_date = args[:payment_date] if args.key?(:payment_date)
end