google-apis-paymentsresellersubscription_v1 0.2.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/lib/google/apis/paymentsresellersubscription_v1/classes.rb +48 -5
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +3 -3
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +17 -0
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +6 -5
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c5472809fbf70b1077261a066bf76c955967a07a96644fc588a39d4680768b
|
4
|
+
data.tar.gz: a76ccdaf51793099ae4b729ed360af32fd71939856c0f8ddfc63aebd15160d93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5e04efad2f22385f9e642a3d0c9c1f39cb4b7c3da8fb03ea830825c1c596643198670ab54aab6cab3428aa6e5779a50ad6096263d62fa6862c24ff4fc36a936
|
7
|
+
data.tar.gz: 67f638539a5728b7bf7739dab9db94ca6ca027782e4f12a39025cbf6ce3349ccad69ba2f9c8b748d2b6a48f3e6c70046d0289e36704e631773085423e2682f72
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-paymentsresellersubscription_v1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-10-14)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211013
|
6
|
+
|
7
|
+
### v0.5.0 (2021-07-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210701
|
10
|
+
* Regenerated using generator version 0.4.0
|
11
|
+
|
12
|
+
### v0.4.0 (2021-06-24)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.3.0 (2021-06-17)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210616
|
19
|
+
* Regenerated using generator version 0.3.0
|
20
|
+
|
3
21
|
### v0.2.0 (2021-05-19)
|
4
22
|
|
5
23
|
* Unspecified changes
|
@@ -27,8 +27,8 @@ module Google
|
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
29
|
# Optional. If true, the subscription will be cancelled immediately. Otherwise,
|
30
|
-
# the subscription will be cancelled at
|
31
|
-
#
|
30
|
+
# the subscription will be cancelled at renewal_time, and therefore no prorated
|
31
|
+
# refund will be issued for the rest of the cycle.
|
32
32
|
# Corresponds to the JSON property `cancelImmediately`
|
33
33
|
# @return [Boolean]
|
34
34
|
attr_accessor :cancel_immediately
|
@@ -392,7 +392,7 @@ module Google
|
|
392
392
|
class GoogleCloudPaymentsResellerSubscriptionV1Subscription
|
393
393
|
include Google::Apis::Core::Hashable
|
394
394
|
|
395
|
-
# Describes the details of a cancelled subscription.
|
395
|
+
# Describes the details of a cancelled or cancelling subscription.
|
396
396
|
# Corresponds to the JSON property `cancellationDetails`
|
397
397
|
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails]
|
398
398
|
attr_accessor :cancellation_details
|
@@ -434,6 +434,13 @@ module Google
|
|
434
434
|
# @return [String]
|
435
435
|
attr_accessor :partner_user_token
|
436
436
|
|
437
|
+
# Output only. Describes the processing state of the subscription. See more
|
438
|
+
# details at [the lifecycle of a subscription](/payments/reseller/subscription/
|
439
|
+
# reference/index/Receive.Notifications#payments-subscription-lifecycle).
|
440
|
+
# Corresponds to the JSON property `processingState`
|
441
|
+
# @return [String]
|
442
|
+
attr_accessor :processing_state
|
443
|
+
|
437
444
|
# Required. Resource name that identifies one or more subscription products. The
|
438
445
|
# format will be 'partners/`partner_id`/products/`product_id`'.
|
439
446
|
# Corresponds to the JSON property `products`
|
@@ -460,7 +467,7 @@ module Google
|
|
460
467
|
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Location]
|
461
468
|
attr_accessor :service_location
|
462
469
|
|
463
|
-
# Output only.
|
470
|
+
# Output only. Describes the state of the subscription. See more details at [the
|
464
471
|
# lifecycle of a subscription](/payments/reseller/subscription/reference/index/
|
465
472
|
# Receive.Notifications#payments-subscription-lifecycle).
|
466
473
|
# Corresponds to the JSON property `state`
|
@@ -473,6 +480,12 @@ module Google
|
|
473
480
|
# @return [String]
|
474
481
|
attr_accessor :update_time
|
475
482
|
|
483
|
+
# Details about the previous subscription that this new subscription upgrades/
|
484
|
+
# downgrades from.
|
485
|
+
# Corresponds to the JSON property `upgradeDowngradeDetails`
|
486
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails]
|
487
|
+
attr_accessor :upgrade_downgrade_details
|
488
|
+
|
476
489
|
def initialize(**args)
|
477
490
|
update!(**args)
|
478
491
|
end
|
@@ -486,16 +499,18 @@ module Google
|
|
486
499
|
@free_trial_end_time = args[:free_trial_end_time] if args.key?(:free_trial_end_time)
|
487
500
|
@name = args[:name] if args.key?(:name)
|
488
501
|
@partner_user_token = args[:partner_user_token] if args.key?(:partner_user_token)
|
502
|
+
@processing_state = args[:processing_state] if args.key?(:processing_state)
|
489
503
|
@products = args[:products] if args.key?(:products)
|
490
504
|
@promotions = args[:promotions] if args.key?(:promotions)
|
491
505
|
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
|
492
506
|
@service_location = args[:service_location] if args.key?(:service_location)
|
493
507
|
@state = args[:state] if args.key?(:state)
|
494
508
|
@update_time = args[:update_time] if args.key?(:update_time)
|
509
|
+
@upgrade_downgrade_details = args[:upgrade_downgrade_details] if args.key?(:upgrade_downgrade_details)
|
495
510
|
end
|
496
511
|
end
|
497
512
|
|
498
|
-
# Describes the details of a cancelled subscription.
|
513
|
+
# Describes the details of a cancelled or cancelling subscription.
|
499
514
|
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
|
500
515
|
include Google::Apis::Core::Hashable
|
501
516
|
|
@@ -514,6 +529,34 @@ module Google
|
|
514
529
|
end
|
515
530
|
end
|
516
531
|
|
532
|
+
# Details about the previous subscription that this new subscription upgrades/
|
533
|
+
# downgrades from.
|
534
|
+
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
|
535
|
+
include Google::Apis::Core::Hashable
|
536
|
+
|
537
|
+
# Required. Specifies the billing cycle spec for the new upgraded/downgraded
|
538
|
+
# subscription.
|
539
|
+
# Corresponds to the JSON property `billingCycleSpec`
|
540
|
+
# @return [String]
|
541
|
+
attr_accessor :billing_cycle_spec
|
542
|
+
|
543
|
+
# Required. The previous subscription id to be replaced. This is not the full
|
544
|
+
# resource name, use the subscription_id segment only.
|
545
|
+
# Corresponds to the JSON property `previousSubscriptionId`
|
546
|
+
# @return [String]
|
547
|
+
attr_accessor :previous_subscription_id
|
548
|
+
|
549
|
+
def initialize(**args)
|
550
|
+
update!(**args)
|
551
|
+
end
|
552
|
+
|
553
|
+
# Update properties of this object
|
554
|
+
def update!(**args)
|
555
|
+
@billing_cycle_spec = args[:billing_cycle_spec] if args.key?(:billing_cycle_spec)
|
556
|
+
@previous_subscription_id = args[:previous_subscription_id] if args.key?(:previous_subscription_id)
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
517
560
|
# Request to revoke a cancellation request.
|
518
561
|
class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest
|
519
562
|
include Google::Apis::Core::Hashable
|
@@ -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.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211013"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,12 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
115
121
|
class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest
|
116
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
123
|
|
@@ -258,6 +264,7 @@ module Google
|
|
258
264
|
property :free_trial_end_time, as: 'freeTrialEndTime'
|
259
265
|
property :name, as: 'name'
|
260
266
|
property :partner_user_token, as: 'partnerUserToken'
|
267
|
+
property :processing_state, as: 'processingState'
|
261
268
|
collection :products, as: 'products'
|
262
269
|
collection :promotions, as: 'promotions'
|
263
270
|
property :redirect_uri, as: 'redirectUri'
|
@@ -265,6 +272,8 @@ module Google
|
|
265
272
|
|
266
273
|
property :state, as: 'state'
|
267
274
|
property :update_time, as: 'updateTime'
|
275
|
+
property :upgrade_downgrade_details, as: 'upgradeDowngradeDetails', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails::Representation
|
276
|
+
|
268
277
|
end
|
269
278
|
end
|
270
279
|
|
@@ -275,6 +284,14 @@ module Google
|
|
275
284
|
end
|
276
285
|
end
|
277
286
|
|
287
|
+
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails
|
288
|
+
# @private
|
289
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
290
|
+
property :billing_cycle_spec, as: 'billingCycleSpec'
|
291
|
+
property :previous_subscription_id, as: 'previousSubscriptionId'
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
278
295
|
class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionRequest
|
279
296
|
# @private
|
280
297
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -139,9 +139,9 @@ module Google
|
|
139
139
|
execute_or_queue_command(command, &block)
|
140
140
|
end
|
141
141
|
|
142
|
-
# Used by partners to cancel a subscription service
|
143
|
-
# billing cycle for their customers. It should be called
|
144
|
-
# using service accounts.
|
142
|
+
# Used by partners to cancel a subscription service either immediately or by the
|
143
|
+
# end of the current billing cycle for their customers. It should be called
|
144
|
+
# directly by the partner using service accounts.
|
145
145
|
# @param [String] name
|
146
146
|
# Required. The name of the subscription resource to be cancelled. It will have
|
147
147
|
# the format of "partners/`partner_id`/subscriptions/`subscription_id`"
|
@@ -255,8 +255,9 @@ module Google
|
|
255
255
|
execute_or_queue_command(command, &block)
|
256
256
|
end
|
257
257
|
|
258
|
-
# Used by partners to extend a subscription service for their customers
|
259
|
-
#
|
258
|
+
# Used by partners to extend a subscription service for their customers on an
|
259
|
+
# ongoing basis for the subscription to remain active and renewable. It should
|
260
|
+
# be called directly by the partner using service accounts.
|
260
261
|
# @param [String] name
|
261
262
|
# Required. The name of the subscription resource to be extended. It will have
|
262
263
|
# the format of "partners/`partner_id`/subscriptions/`subscription_id`".
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Payments Reseller Subscription API
|
28
34
|
V1. Simple REST clients are Ruby client libraries that provide access to Google
|
29
35
|
services via their HTTP REST API endpoints. These libraries are generated and updated
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.6.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-paymentsresellersubscription_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|