Skip to content

Commit 668dc31

Browse files
feat: Automated regeneration of paymentsresellersubscription v1 client (#24779)
Auto-created at 2025-11-02 09:24:04 +0000 using the toys pull request generator.
1 parent e0ab843 commit 668dc31

File tree

5 files changed

+49
-3
lines changed

5 files changed

+49
-3
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318577,6 +318577,9 @@
318577318577
"/paymentsresellersubscription:v1/IntentPayload": intent_payload
318578318578
"/paymentsresellersubscription:v1/IntentPayload/createIntent": create_intent
318579318579
"/paymentsresellersubscription:v1/IntentPayload/entitleIntent": entitle_intent
318580+
"/paymentsresellersubscription:v1/IntentPayload/intentOptions": intent_options
318581+
"/paymentsresellersubscription:v1/IntentPayloadIntentOptions": intent_payload_intent_options
318582+
"/paymentsresellersubscription:v1/IntentPayloadIntentOptions/enableOfferOverride": enable_offer_override
318580318583
"/paymentsresellersubscription:v1/ListProductsResponse": list_products_response
318581318584
"/paymentsresellersubscription:v1/ListProductsResponse/nextPageToken": next_page_token
318582318585
"/paymentsresellersubscription:v1/ListProductsResponse/products": products

generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-paymentsresellersubscription_v1
22

3-
### v0.59.0 (2025-10-26)
3+
### v0.59.0 (2025-11-02)
44

5-
* Regenerated from discovery document revision 20251019
5+
* Regenerated from discovery document revision 20251026
66

77
### v0.58.0 (2025-10-19)
88

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/classes.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,11 @@ class IntentPayload
641641
# @return [Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent]
642642
attr_accessor :entitle_intent
643643

644+
# The options for the intent.
645+
# Corresponds to the JSON property `intentOptions`
646+
# @return [Google::Apis::PaymentsresellersubscriptionV1::IntentPayloadIntentOptions]
647+
attr_accessor :intent_options
648+
644649
def initialize(**args)
645650
update!(**args)
646651
end
@@ -649,6 +654,29 @@ def initialize(**args)
649654
def update!(**args)
650655
@create_intent = args[:create_intent] if args.key?(:create_intent)
651656
@entitle_intent = args[:entitle_intent] if args.key?(:entitle_intent)
657+
@intent_options = args[:intent_options] if args.key?(:intent_options)
658+
end
659+
end
660+
661+
# The options for the intent.
662+
class IntentPayloadIntentOptions
663+
include Google::Apis::Core::Hashable
664+
665+
# Optional. If true, Google may use a different product and promotion id from
666+
# the ones in the `create_intent` based on the user's eligibility. Only
667+
# applicable for certain YouTube free trial offers.
668+
# Corresponds to the JSON property `enableOfferOverride`
669+
# @return [Boolean]
670+
attr_accessor :enable_offer_override
671+
alias_method :enable_offer_override?, :enable_offer_override
672+
673+
def initialize(**args)
674+
update!(**args)
675+
end
676+
677+
# Update properties of this object
678+
def update!(**args)
679+
@enable_offer_override = args[:enable_offer_override] if args.key?(:enable_offer_override)
652680
end
653681
end
654682

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module PaymentsresellersubscriptionV1
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251019"
25+
REVISION = "20251026"
2626
end
2727
end
2828
end

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
154154
include Google::Apis::Core::JsonObjectSupport
155155
end
156156

157+
class IntentPayloadIntentOptions
158+
class Representation < Google::Apis::Core::JsonRepresentation; end
159+
160+
include Google::Apis::Core::JsonObjectSupport
161+
end
162+
157163
class ListProductsResponse
158164
class Representation < Google::Apis::Core::JsonRepresentation; end
159165

@@ -513,6 +519,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
513519

514520
property :entitle_intent, as: 'entitleIntent', class: Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent, decorator: Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent::Representation
515521

522+
property :intent_options, as: 'intentOptions', class: Google::Apis::PaymentsresellersubscriptionV1::IntentPayloadIntentOptions, decorator: Google::Apis::PaymentsresellersubscriptionV1::IntentPayloadIntentOptions::Representation
523+
524+
end
525+
end
526+
527+
class IntentPayloadIntentOptions
528+
# @private
529+
class Representation < Google::Apis::Core::JsonRepresentation
530+
property :enable_offer_override, as: 'enableOfferOverride'
516531
end
517532
end
518533

0 commit comments

Comments
 (0)