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.


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

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

Instance Attribute Details

#idString

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

Returns:

  • (String)

934
935
936
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 934

def id
  @id
end

#kindString

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

Returns:

  • (String)

939
940
941
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 939

def kind
  @kind
end

#payment_amountString

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

Returns:

  • (String)

944
945
946
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 944

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)

949
950
951
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 949

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)

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

def payment_date
  @payment_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


962
963
964
965
966
967
968
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 962

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