Class: Google::Apis::PaymentsresellersubscriptionV1::FindEligiblePromotionsResponse

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

Overview

Response containing the found promotions for the current user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FindEligiblePromotionsResponse

Returns a new instance of FindEligiblePromotionsResponse.



451
452
453
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 451

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

Instance Attribute Details

#next_page_tokenString

A token, which can be sent as page_token to retrieve the next page. If this field is empty, there are no subsequent pages. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


444
445
446
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 444

def next_page_token
  @next_page_token
end

#promotionsArray<Google::Apis::PaymentsresellersubscriptionV1::Promotion>

The promotions for the current user. Corresponds to the JSON property promotions



449
450
451
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 449

def promotions
  @promotions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



456
457
458
459
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 456

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