Class: Google::Apis::AdsenseV2::Payment
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::Payment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsense_v2/classes.rb,
lib/google/apis/adsense_v2/representations.rb,
lib/google/apis/adsense_v2/representations.rb
Overview
Representation of an unpaid or paid payment. See Payment timelines for AdSense for more information about payments.
Instance Attribute Summary collapse
-
#amount ⇒ String
Output only.
-
#date ⇒ Google::Apis::AdsenseV2::Date
Represents a whole or partial calendar date, such as a birthday.
-
#name ⇒ String
Resource name of the payment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Payment
constructor
A new instance of Payment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Payment
Returns a new instance of Payment.
778 779 780 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 778 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ String
Output only. The amount of unpaid or paid earnings, as a formatted string,
including the currency. E.g. "¥1,235 JPY", "$1,234.57", "£87.65".
Corresponds to the JSON property amount
757 758 759 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 757 def amount @amount end |
#date ⇒ Google::Apis::AdsenseV2::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values * A month
and day value, with a zero year, such as an anniversary * A year on its own,
with zero month and day values * A year and month value, with a zero day, such
as a credit card expiration date Related types are google.type.TimeOfDay and
google.protobuf.Timestamp.
Corresponds to the JSON property date
769 770 771 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 769 def date @date end |
#name ⇒ String
Resource name of the payment. Format: accounts/account/payments/unpaid for
unpaid (current) earnings. accounts/account/payments/yyyy-MM-dd for paid
earnings.
Corresponds to the JSON property name
776 777 778 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 776 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
783 784 785 786 787 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 783 def update!(**args) @amount = args[:amount] if args.key?(:amount) @date = args[:date] if args.key?(:date) @name = args[:name] if args.key?(:name) end |