Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalanceWallet

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

Overview

Wallet used to manage an account balance for a particular currency.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1DeveloperBalanceWallet

Returns a new instance of GoogleCloudApigeeV1DeveloperBalanceWallet.



3019
3020
3021
# File 'lib/google/apis/apigee_v1/classes.rb', line 3019

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

Instance Attribute Details

#balanceGoogle::Apis::ApigeeV1::GoogleTypeMoney

Represents an amount of money with its currency type. Corresponds to the JSON property balance



3011
3012
3013
# File 'lib/google/apis/apigee_v1/classes.rb', line 3011

def balance
  @balance
end

#last_credit_timeFixnum

Output only. Time at which the developer last added credit to the account in milliseconds since epoch. Corresponds to the JSON property lastCreditTime

Returns:

  • (Fixnum)


3017
3018
3019
# File 'lib/google/apis/apigee_v1/classes.rb', line 3017

def last_credit_time
  @last_credit_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3024
3025
3026
3027
# File 'lib/google/apis/apigee_v1/classes.rb', line 3024

def update!(**args)
  @balance = args[:balance] if args.key?(:balance)
  @last_credit_time = args[:last_credit_time] if args.key?(:last_credit_time)
end