google-apis-paymentsresellersubscription_v1 0.57.0 → 0.58.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/paymentsresellersubscription_v1/classes.rb +25 -0
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +2 -2
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +16 -0
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +47 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a789239b4e51f25e68d57e7be8730a3442702e208ea97e4a7d1356192458328
|
|
4
|
+
data.tar.gz: e106ba5e09b4759b8dfbe388038f046731ee7373dcf516d71686036055acda2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2825e258b0b31aacb0a552780dffb6641cd6bd4091a450f388d17f802324578cfbb2c01664b2f89a873d0d3c5f49b4ab782d2a4ff84ba0a87502c1405a01fd2a
|
|
7
|
+
data.tar.gz: e93a05f857713262e05fd608af5ebec9857885195f792b10a254c5de892ab88ab47a3be829ce5d19e849b4a84e55181802093f09e02734919253a43167c75686
|
data/CHANGELOG.md
CHANGED
|
@@ -148,6 +148,25 @@ module Google
|
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
+
# The cycle options when starting and resuming a subscription.
|
|
152
|
+
class CycleOptions
|
|
153
|
+
include Google::Apis::Core::Hashable
|
|
154
|
+
|
|
155
|
+
# Describes the length of a period of a time.
|
|
156
|
+
# Corresponds to the JSON property `initialCycleDuration`
|
|
157
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
|
|
158
|
+
attr_accessor :initial_cycle_duration
|
|
159
|
+
|
|
160
|
+
def initialize(**args)
|
|
161
|
+
update!(**args)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Update properties of this object
|
|
165
|
+
def update!(**args)
|
|
166
|
+
@initial_cycle_duration = args[:initial_cycle_duration] if args.key?(:initial_cycle_duration)
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
151
170
|
# Describes the length of a period of a time.
|
|
152
171
|
class Duration
|
|
153
172
|
include Google::Apis::Core::Hashable
|
|
@@ -1004,12 +1023,18 @@ module Google
|
|
|
1004
1023
|
class ResumeSubscriptionRequest
|
|
1005
1024
|
include Google::Apis::Core::Hashable
|
|
1006
1025
|
|
|
1026
|
+
# The cycle options when starting and resuming a subscription.
|
|
1027
|
+
# Corresponds to the JSON property `cycleOptions`
|
|
1028
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::CycleOptions]
|
|
1029
|
+
attr_accessor :cycle_options
|
|
1030
|
+
|
|
1007
1031
|
def initialize(**args)
|
|
1008
1032
|
update!(**args)
|
|
1009
1033
|
end
|
|
1010
1034
|
|
|
1011
1035
|
# Update properties of this object
|
|
1012
1036
|
def update!(**args)
|
|
1037
|
+
@cycle_options = args[:cycle_options] if args.key?(:cycle_options)
|
|
1013
1038
|
end
|
|
1014
1039
|
end
|
|
1015
1040
|
|
|
@@ -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.
|
|
19
|
+
GEM_VERSION = "0.58.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 = "
|
|
25
|
+
REVISION = "20251012"
|
|
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
|
|
|
@@ -356,6 +362,14 @@ module Google
|
|
|
356
362
|
end
|
|
357
363
|
end
|
|
358
364
|
|
|
365
|
+
class CycleOptions
|
|
366
|
+
# @private
|
|
367
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
368
|
+
property :initial_cycle_duration, as: 'initialCycleDuration', class: Google::Apis::PaymentsresellersubscriptionV1::Duration, decorator: Google::Apis::PaymentsresellersubscriptionV1::Duration::Representation
|
|
369
|
+
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
|
|
359
373
|
class Duration
|
|
360
374
|
# @private
|
|
361
375
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -622,6 +636,8 @@ module Google
|
|
|
622
636
|
class ResumeSubscriptionRequest
|
|
623
637
|
# @private
|
|
624
638
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
639
|
+
property :cycle_options, as: 'cycleOptions', class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions, decorator: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions::Representation
|
|
640
|
+
|
|
625
641
|
end
|
|
626
642
|
end
|
|
627
643
|
|
|
@@ -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.
|
|
4
|
+
version: 0.58.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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.58.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:
|