google-apis-paymentsresellersubscription_v1 0.57.0 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68b0e1b826114735721716e10ce5196789e82481f0147e9c54cbe0c375e1feb1
4
- data.tar.gz: 65e43e794aa90349cdb0096189a89a881ac82e2437206cb9594e506bfc6bb631
3
+ metadata.gz: 753545d7d18c0e1d5878356a24869398acf9ea5fe363a28dfe2c3cac84f18ab1
4
+ data.tar.gz: ff42eb0cb248d09d8353a8ac672aa57ae1a897eda6446d5498f3a406f3a50d8e
5
5
  SHA512:
6
- metadata.gz: 87e2520fc6c8d36aa1e24698f016113959cbf1afd20d50d051facbed092223a59b2e267ea597ecb01b71fae0db5065bc404cb0dcf1235c8dcb3c9a16c0e62bde
7
- data.tar.gz: bfa9b1dc7de4f15e6f205af87e0e6f44d9adda4ec914ab91d4dd107f78e61b8e2e4e82ec8bcdd7a0a90b0927723b880f56ca60310293e22232df2493a1aa5f9d
6
+ metadata.gz: 21bc39fe5ad9d088a04ede696feed5f74cf19a3ec061ae46769832b014a464c69b77e4e7688952c4e75cc2091a412e4859573a4e02831d9d9efa8d4dc23d9d55
7
+ data.tar.gz: bf83d75c1bd0b4c72966c95a04f12d82d9459d68b272fefbd687fc94c431bbd0b6d1413afa38c40e1161840e6f78a4919a5eb7319bf56507175650e8e69f3af1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-paymentsresellersubscription_v1
2
2
 
3
+ ### v0.59.0 (2025-11-02)
4
+
5
+ * Regenerated from discovery document revision 20251026
6
+
7
+ ### v0.58.0 (2025-10-19)
8
+
9
+ * Regenerated from discovery document revision 20251012
10
+
3
11
  ### v0.57.0 (2025-10-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20251005
@@ -110,6 +110,11 @@ module Google
110
110
  class CreateSubscriptionIntent
111
111
  include Google::Apis::Core::Hashable
112
112
 
113
+ # The cycle options when starting and resuming a subscription.
114
+ # Corresponds to the JSON property `cycleOptions`
115
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::CycleOptions]
116
+ attr_accessor :cycle_options
117
+
113
118
  # Required. The parent resource name, which is the identifier of the partner.
114
119
  # Corresponds to the JSON property `parent`
115
120
  # @return [String]
@@ -142,12 +147,32 @@ module Google
142
147
 
143
148
  # Update properties of this object
144
149
  def update!(**args)
150
+ @cycle_options = args[:cycle_options] if args.key?(:cycle_options)
145
151
  @parent = args[:parent] if args.key?(:parent)
146
152
  @subscription = args[:subscription] if args.key?(:subscription)
147
153
  @subscription_id = args[:subscription_id] if args.key?(:subscription_id)
148
154
  end
149
155
  end
150
156
 
157
+ # The cycle options when starting and resuming a subscription.
158
+ class CycleOptions
159
+ include Google::Apis::Core::Hashable
160
+
161
+ # Describes the length of a period of a time.
162
+ # Corresponds to the JSON property `initialCycleDuration`
163
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
164
+ attr_accessor :initial_cycle_duration
165
+
166
+ def initialize(**args)
167
+ update!(**args)
168
+ end
169
+
170
+ # Update properties of this object
171
+ def update!(**args)
172
+ @initial_cycle_duration = args[:initial_cycle_duration] if args.key?(:initial_cycle_duration)
173
+ end
174
+ end
175
+
151
176
  # Describes the length of a period of a time.
152
177
  class Duration
153
178
  include Google::Apis::Core::Hashable
@@ -616,6 +641,11 @@ module Google
616
641
  # @return [Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent]
617
642
  attr_accessor :entitle_intent
618
643
 
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
+
619
649
  def initialize(**args)
620
650
  update!(**args)
621
651
  end
@@ -624,6 +654,29 @@ module Google
624
654
  def update!(**args)
625
655
  @create_intent = args[:create_intent] if args.key?(:create_intent)
626
656
  @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)
627
680
  end
628
681
  end
629
682
 
@@ -1004,12 +1057,18 @@ module Google
1004
1057
  class ResumeSubscriptionRequest
1005
1058
  include Google::Apis::Core::Hashable
1006
1059
 
1060
+ # The cycle options when starting and resuming a subscription.
1061
+ # Corresponds to the JSON property `cycleOptions`
1062
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::CycleOptions]
1063
+ attr_accessor :cycle_options
1064
+
1007
1065
  def initialize(**args)
1008
1066
  update!(**args)
1009
1067
  end
1010
1068
 
1011
1069
  # Update properties of this object
1012
1070
  def update!(**args)
1071
+ @cycle_options = args[:cycle_options] if args.key?(:cycle_options)
1013
1072
  end
1014
1073
  end
1015
1074
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PaymentsresellersubscriptionV1
18
18
  # Version of the google-apis-paymentsresellersubscription_v1 gem
19
- GEM_VERSION = "0.57.0"
19
+ GEM_VERSION = "0.59.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251005"
25
+ REVISION = "20251026"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class CycleOptions
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class Duration
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -148,6 +154,12 @@ module Google
148
154
  include Google::Apis::Core::JsonObjectSupport
149
155
  end
150
156
 
157
+ class IntentPayloadIntentOptions
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
151
163
  class ListProductsResponse
152
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
165
 
@@ -349,6 +361,8 @@ module Google
349
361
  class CreateSubscriptionIntent
350
362
  # @private
351
363
  class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :cycle_options, as: 'cycleOptions', class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions, decorator: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions::Representation
365
+
352
366
  property :parent, as: 'parent'
353
367
  property :subscription, as: 'subscription', class: Google::Apis::PaymentsresellersubscriptionV1::Subscription, decorator: Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
354
368
 
@@ -356,6 +370,14 @@ module Google
356
370
  end
357
371
  end
358
372
 
373
+ class CycleOptions
374
+ # @private
375
+ class Representation < Google::Apis::Core::JsonRepresentation
376
+ property :initial_cycle_duration, as: 'initialCycleDuration', class: Google::Apis::PaymentsresellersubscriptionV1::Duration, decorator: Google::Apis::PaymentsresellersubscriptionV1::Duration::Representation
377
+
378
+ end
379
+ end
380
+
359
381
  class Duration
360
382
  # @private
361
383
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -497,6 +519,15 @@ module Google
497
519
 
498
520
  property :entitle_intent, as: 'entitleIntent', class: Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent, decorator: Google::Apis::PaymentsresellersubscriptionV1::EntitleSubscriptionIntent::Representation
499
521
 
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'
500
531
  end
501
532
  end
502
533
 
@@ -622,6 +653,8 @@ module Google
622
653
  class ResumeSubscriptionRequest
623
654
  # @private
624
655
  class Representation < Google::Apis::Core::JsonRepresentation
656
+ property :cycle_options, as: 'cycleOptions', class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions, decorator: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions::Representation
657
+
625
658
  end
626
659
  end
627
660
 
@@ -387,6 +387,10 @@ module Google
387
387
  # Required. The parent resource name, which is the identifier of the partner. It
388
388
  # will have the format of "partners/`partner_id`".
389
389
  # @param [Google::Apis::PaymentsresellersubscriptionV1::Subscription] subscription_object
390
+ # @param [Fixnum] cycle_options_initial_cycle_duration_count
391
+ # number of duration units to be included.
392
+ # @param [String] cycle_options_initial_cycle_duration_unit
393
+ # The unit used for the duration
390
394
  # @param [String] subscription_id
391
395
  # Required. Identifies the subscription resource on the Partner side. The value
392
396
  # is restricted to 63 ASCII characters at the maximum. If a subscription was
@@ -409,13 +413,15 @@ module Google
409
413
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
410
414
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
411
415
  # @raise [Google::Apis::AuthorizationError] Authorization is required
412
- def provision_partner_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
416
+ def provision_partner_subscription(parent, subscription_object = nil, cycle_options_initial_cycle_duration_count: nil, cycle_options_initial_cycle_duration_unit: nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
413
417
  command = make_simple_command(:post, 'v1/{+parent}/subscriptions:provision', options)
414
418
  command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
415
419
  command.request_object = subscription_object
416
420
  command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
417
421
  command.response_class = Google::Apis::PaymentsresellersubscriptionV1::Subscription
418
422
  command.params['parent'] = parent unless parent.nil?
423
+ command.query['cycleOptions.initialCycleDuration.count'] = cycle_options_initial_cycle_duration_count unless cycle_options_initial_cycle_duration_count.nil?
424
+ command.query['cycleOptions.initialCycleDuration.unit'] = cycle_options_initial_cycle_duration_unit unless cycle_options_initial_cycle_duration_unit.nil?
419
425
  command.query['subscriptionId'] = subscription_id unless subscription_id.nil?
420
426
  command.query['fields'] = fields unless fields.nil?
421
427
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -533,6 +539,46 @@ module Google
533
539
  execute_or_queue_command(command, &block)
534
540
  end
535
541
 
542
+ # Updates a line item of a subscription. It should be autenticated with a
543
+ # service account.
544
+ # @param [String] name
545
+ # Identifier. Resource name of the line item. Format: partners/`partner`/
546
+ # subscriptions/`subscription`/lineItems/`lineItem`
547
+ # @param [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] subscription_line_item_object
548
+ # @param [String] update_mask
549
+ # Required. The list of fields to update. Only a limited set of fields can be
550
+ # updated. The allowed fields are the following: - `product_payload.
551
+ # googleHomePayload.googleStructureId`
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def patch_partner_subscription_line_item(name, subscription_line_item_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:patch, 'v1/{+name}', options)
571
+ command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation
572
+ command.request_object = subscription_line_item_object
573
+ command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation
574
+ command.response_class = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem
575
+ command.params['name'] = name unless name.nil?
576
+ command.query['updateMask'] = update_mask unless update_mask.nil?
577
+ command.query['fields'] = fields unless fields.nil?
578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
579
+ execute_or_queue_command(command, &block)
580
+ end
581
+
536
582
  # This API replaces user authorized OAuth consent based APIs (Create, Entitle).
537
583
  # Issues a timed session token for the given user intent. You can use the
538
584
  # session token to redirect the user to Google to finish the signup flow. You
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-paymentsresellersubscription_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.59.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.57.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.59.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1
62
62
  rdoc_options: []
63
63
  require_paths: