Class: Google::Apis::ResellerV1::Subscription::TransferInfo

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

Overview

Read-only transfer related information for the subscription. For more information, see retrieve transferable subscriptions for a customer.

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

Returns a new instance of TransferInfo



625
626
627
# File 'generated/google/apis/reseller_v1/classes.rb', line 625

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

Instance Attribute Details

#minimum_transferable_seatsFixnum

When inserting a subscription, this is the minimum number of seats listed in the transfer order for this product. For example, if the customer has 20 users, the reseller cannot place a transfer order of 15 seats. The minimum is 20 seats. Corresponds to the JSON property minimumTransferableSeats

Returns:

  • (Fixnum)


617
618
619
# File 'generated/google/apis/reseller_v1/classes.rb', line 617

def minimum_transferable_seats
  @minimum_transferable_seats
end

#transferability_expiration_timeFixnum

The time when transfer token or intent to transfer will expire. The time is in milliseconds using UNIX Epoch format. Corresponds to the JSON property transferabilityExpirationTime

Returns:

  • (Fixnum)


623
624
625
# File 'generated/google/apis/reseller_v1/classes.rb', line 623

def transferability_expiration_time
  @transferability_expiration_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



630
631
632
633
# File 'generated/google/apis/reseller_v1/classes.rb', line 630

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