Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest.



254
255
256
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 254

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

Instance Attribute Details

#filterString

Optional. Specifies the filters for the promotion results. The syntax defined in the EBNF grammar: https://google.aip.dev/assets/misc/ebnf-filtering.txt. An error will be thrown if any specified parameter is not supported. Currently, it can only be used by Youtube partners. Allowed parameters are: - regionCodes

  • zipCode - eligibilityId - applicableProducts Multiple parameters can be specified, for example: "regionCodes=US zipCode=94043 eligibilityId= 2022H1Campaign", or "applicableProducts=partners/p1/products/product2" Corresponds to the JSON property filter

Returns:

  • (String)


237
238
239
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 237

def filter
  @filter
end

#page_sizeFixnum

Optional. The maximum number of promotions to return. The service may return fewer than this value. If unspecified, at most 50 products will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. Corresponds to the JSON property pageSize

Returns:

  • (Fixnum)


244
245
246
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 244

def page_size
  @page_size
end

#page_tokenString

Optional. A page token, received from a previous ListPromotions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListPromotions must match the call that provided the page token. Corresponds to the JSON property pageToken

Returns:

  • (String)


252
253
254
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 252

def page_token
  @page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



259
260
261
262
263
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 259

def update!(**args)
  @filter = args[:filter] if args.key?(:filter)
  @page_size = args[:page_size] if args.key?(:page_size)
  @page_token = args[:page_token] if args.key?(:page_token)
end