Class: Google::Apis::AndroidpublisherV1_1::SubscriptionPurchase
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidpublisherV1_1::SubscriptionPurchase
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidpublisher_v1_1/classes.rb,
 generated/google/apis/androidpublisher_v1_1/representations.rb,
 generated/google/apis/androidpublisher_v1_1/representations.rb
Overview
A SubscriptionPurchase resource indicates the status of a user's subscription purchase.
Instance Attribute Summary collapse
- 
  
    
      #auto_renewing  ⇒ Boolean 
    
    
      (also: #auto_renewing?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether the subscription will automatically be renewed when it reaches its current expiry time. 
- 
  
    
      #initiation_timestamp_msec  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time at which the subscription was granted, in milliseconds since the Epoch. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This kind represents a subscriptionPurchase object in the androidpublisher service. 
- 
  
    
      #valid_until_timestamp_msec  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time at which the subscription will expire, in milliseconds since the Epoch. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ SubscriptionPurchase 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of SubscriptionPurchase. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SubscriptionPurchase
Returns a new instance of SubscriptionPurchase
| 119 120 121 | # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 119 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#auto_renewing ⇒ Boolean Also known as: auto_renewing?
Whether the subscription will automatically be renewed when it reaches its
current expiry time.
Corresponds to the JSON property autoRenewing
| 100 101 102 | # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 100 def auto_renewing @auto_renewing end | 
#initiation_timestamp_msec ⇒ Fixnum
Time at which the subscription was granted, in milliseconds since the Epoch.
Corresponds to the JSON property initiationTimestampMsec
| 106 107 108 | # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 106 def @initiation_timestamp_msec end | 
#kind ⇒ String
This kind represents a subscriptionPurchase object in the androidpublisher
service.
Corresponds to the JSON property kind
| 112 113 114 | # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 112 def kind @kind end | 
#valid_until_timestamp_msec ⇒ Fixnum
Time at which the subscription will expire, in milliseconds since the Epoch.
Corresponds to the JSON property validUntilTimestampMsec
| 117 118 119 | # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 117 def @valid_until_timestamp_msec end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 124 125 126 127 128 129 | # File 'generated/google/apis/androidpublisher_v1_1/classes.rb', line 124 def update!(**args) @auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing) @initiation_timestamp_msec = args[:initiation_timestamp_msec] if args.key?(:initiation_timestamp_msec) @kind = args[:kind] if args.key?(:kind) @valid_until_timestamp_msec = args[:valid_until_timestamp_msec] if args.key?(:valid_until_timestamp_msec) end |