google-apis-paymentsresellersubscription_v1 0.4.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30b3da2bbc7bb28462dd1a87a5249c9d823adc2a5d3c5f81353a243fd099ca3b
4
- data.tar.gz: 286bb5a0a1cd061e4a64e4e89fad4fc6c83903a61c75871ffed31f1869daefbe
3
+ metadata.gz: 527892859d1eb2686a2bf4112ccd093cd22ce7a5ae04b888f08edb4e3de59120
4
+ data.tar.gz: efbd217ef2747ca921f144ff2333b0c9e1e750a5334bf37af171054b480ca34a
5
5
  SHA512:
6
- metadata.gz: ac762ed6b9da97ad7fd74f783ab54606ca7cfcf00a4f5f9c7fc517b030ee7ad3d5638c396d407717a06ec2d3f48f00dbdd5dc1422b9c20380d04c36f22f078be
7
- data.tar.gz: 2957076f262aff3639b69a2c2cccf377264087d3fb31982a609f28a75ce27429a4d49d8fc0e7cfcf0a2aa5d2b609221ee84c8a7386d3a97cab873b4acd607281
6
+ metadata.gz: b082947c56a0557e0c18180af407f13031c3cc5af0dd8cdd2aaab2883b8735c3b48b1241e5051a5cfcf32d23cf91fbd55152a1f8d166cfcc762872d8a973e6e5
7
+ data.tar.gz: 494b591dd32cd31dcf0e750b2a54b800c03da4a2187c16fe9bcc5f40c3fa5d871021367706dbbcb79bb20ca48790e39297b1410b5ee6686f26ec3a8d9bcc2795
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-paymentsresellersubscription_v1
2
2
 
3
+ ### v0.8.0 (2021-11-06)
4
+
5
+ * Regenerated from discovery document revision 20211105
6
+
7
+ ### v0.7.0 (2021-10-27)
8
+
9
+ * Regenerated from discovery document revision 20211026
10
+ * Unspecified changes
11
+
12
+ ### v0.6.0 (2021-10-14)
13
+
14
+ * Regenerated from discovery document revision 20211013
15
+
16
+ ### v0.5.0 (2021-07-03)
17
+
18
+ * Regenerated from discovery document revision 20210701
19
+ * Regenerated using generator version 0.4.0
20
+
3
21
  ### v0.4.0 (2021-06-24)
4
22
 
5
23
  * Unspecified changes
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Paymentsresellersubscription service in particular.)
67
67
 
@@ -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 the end of the current cycle, and
31
- # therefore no prorated refund will be issued for the rest of the cycle.
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
@@ -175,6 +175,15 @@ module Google
175
175
  # @return [String]
176
176
  attr_accessor :free_trial_end_time
177
177
 
178
+ # Output only. The time at which the subscription is expected to be renewed by
179
+ # Google - a new charge will be incurred and the service entitlement will be
180
+ # renewed. A non-immediate cancellation will take place at this time too, before
181
+ # which, the service entitlement for the end user will remain valid. UTC
182
+ # timezone in ISO 8061 format. For example: "2019-08-31T17:28:54.564Z"
183
+ # Corresponds to the JSON property `renewalTime`
184
+ # @return [String]
185
+ attr_accessor :renewal_time
186
+
178
187
  def initialize(**args)
179
188
  update!(**args)
180
189
  end
@@ -183,6 +192,7 @@ module Google
183
192
  def update!(**args)
184
193
  @cycle_end_time = args[:cycle_end_time] if args.key?(:cycle_end_time)
185
194
  @free_trial_end_time = args[:free_trial_end_time] if args.key?(:free_trial_end_time)
195
+ @renewal_time = args[:renewal_time] if args.key?(:renewal_time)
186
196
  end
187
197
  end
188
198
 
@@ -349,12 +359,22 @@ module Google
349
359
  # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration]
350
360
  attr_accessor :free_trial_duration
351
361
 
362
+ # The details of a introductory pricing promotion.
363
+ # Corresponds to the JSON property `introductoryPricingDetails`
364
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails]
365
+ attr_accessor :introductory_pricing_details
366
+
352
367
  # Output only. Response only. Resource name of the subscription promotion. It
353
368
  # will have the format of "partners/`partner_id`/promotion/`promotion_id`"
354
369
  # Corresponds to the JSON property `name`
355
370
  # @return [String]
356
371
  attr_accessor :name
357
372
 
373
+ # Output only. Output Only. Specifies the type of the promotion.
374
+ # Corresponds to the JSON property `promotionType`
375
+ # @return [String]
376
+ attr_accessor :promotion_type
377
+
358
378
  # Output only. 2-letter ISO region code where the promotion is available in. Ex.
359
379
  # "US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1
360
380
  # Corresponds to the JSON property `regionCodes`
@@ -381,18 +401,59 @@ module Google
381
401
  @applicable_products = args[:applicable_products] if args.key?(:applicable_products)
382
402
  @end_time = args[:end_time] if args.key?(:end_time)
383
403
  @free_trial_duration = args[:free_trial_duration] if args.key?(:free_trial_duration)
404
+ @introductory_pricing_details = args[:introductory_pricing_details] if args.key?(:introductory_pricing_details)
384
405
  @name = args[:name] if args.key?(:name)
406
+ @promotion_type = args[:promotion_type] if args.key?(:promotion_type)
385
407
  @region_codes = args[:region_codes] if args.key?(:region_codes)
386
408
  @start_time = args[:start_time] if args.key?(:start_time)
387
409
  @titles = args[:titles] if args.key?(:titles)
388
410
  end
389
411
  end
390
412
 
413
+ # The details of a introductory pricing promotion.
414
+ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
415
+ include Google::Apis::Core::Hashable
416
+
417
+ # Specifies the introductory pricing periods.
418
+ # Corresponds to the JSON property `introductoryPricingSpecs`
419
+ # @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec>]
420
+ attr_accessor :introductory_pricing_specs
421
+
422
+ def initialize(**args)
423
+ update!(**args)
424
+ end
425
+
426
+ # Update properties of this object
427
+ def update!(**args)
428
+ @introductory_pricing_specs = args[:introductory_pricing_specs] if args.key?(:introductory_pricing_specs)
429
+ end
430
+ end
431
+
432
+ # The duration of an introductory pricing promotion.
433
+ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
434
+ include Google::Apis::Core::Hashable
435
+
436
+ # Output only. Output Only. The duration of an introductory offer in billing
437
+ # cycles.
438
+ # Corresponds to the JSON property `recurrenceCount`
439
+ # @return [Fixnum]
440
+ attr_accessor :recurrence_count
441
+
442
+ def initialize(**args)
443
+ update!(**args)
444
+ end
445
+
446
+ # Update properties of this object
447
+ def update!(**args)
448
+ @recurrence_count = args[:recurrence_count] if args.key?(:recurrence_count)
449
+ end
450
+ end
451
+
391
452
  # A Subscription resource managed by 3P Partners.
392
453
  class GoogleCloudPaymentsResellerSubscriptionV1Subscription
393
454
  include Google::Apis::Core::Hashable
394
455
 
395
- # Describes the details of a cancelled subscription.
456
+ # Describes the details of a cancelled or cancelling subscription.
396
457
  # Corresponds to the JSON property `cancellationDetails`
397
458
  # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails]
398
459
  attr_accessor :cancellation_details
@@ -434,6 +495,13 @@ module Google
434
495
  # @return [String]
435
496
  attr_accessor :partner_user_token
436
497
 
498
+ # Output only. Describes the processing state of the subscription. See more
499
+ # details at [the lifecycle of a subscription](/payments/reseller/subscription/
500
+ # reference/index/Receive.Notifications#payments-subscription-lifecycle).
501
+ # Corresponds to the JSON property `processingState`
502
+ # @return [String]
503
+ attr_accessor :processing_state
504
+
437
505
  # Required. Resource name that identifies one or more subscription products. The
438
506
  # format will be 'partners/`partner_id`/products/`product_id`'.
439
507
  # Corresponds to the JSON property `products`
@@ -460,7 +528,7 @@ module Google
460
528
  # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Location]
461
529
  attr_accessor :service_location
462
530
 
463
- # Output only. Descibes the state of the subscription. See more details at [the
531
+ # Output only. Describes the state of the subscription. See more details at [the
464
532
  # lifecycle of a subscription](/payments/reseller/subscription/reference/index/
465
533
  # Receive.Notifications#payments-subscription-lifecycle).
466
534
  # Corresponds to the JSON property `state`
@@ -492,6 +560,7 @@ module Google
492
560
  @free_trial_end_time = args[:free_trial_end_time] if args.key?(:free_trial_end_time)
493
561
  @name = args[:name] if args.key?(:name)
494
562
  @partner_user_token = args[:partner_user_token] if args.key?(:partner_user_token)
563
+ @processing_state = args[:processing_state] if args.key?(:processing_state)
495
564
  @products = args[:products] if args.key?(:products)
496
565
  @promotions = args[:promotions] if args.key?(:promotions)
497
566
  @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
@@ -502,7 +571,7 @@ module Google
502
571
  end
503
572
  end
504
573
 
505
- # Describes the details of a cancelled subscription.
574
+ # Describes the details of a cancelled or cancelling subscription.
506
575
  class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails
507
576
  include Google::Apis::Core::Hashable
508
577
 
@@ -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.4.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210616"
25
+ REVISION = "20211105"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,18 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class GoogleCloudPaymentsResellerSubscriptionV1Subscription
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
@@ -188,6 +200,7 @@ module Google
188
200
  class Representation < Google::Apis::Core::JsonRepresentation
189
201
  property :cycle_end_time, as: 'cycleEndTime'
190
202
  property :free_trial_end_time, as: 'freeTrialEndTime'
203
+ property :renewal_time, as: 'renewalTime'
191
204
  end
192
205
  end
193
206
 
@@ -245,7 +258,10 @@ module Google
245
258
  property :end_time, as: 'endTime'
246
259
  property :free_trial_duration, as: 'freeTrialDuration', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration::Representation
247
260
 
261
+ property :introductory_pricing_details, as: 'introductoryPricingDetails', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails::Representation
262
+
248
263
  property :name, as: 'name'
264
+ property :promotion_type, as: 'promotionType'
249
265
  collection :region_codes, as: 'regionCodes'
250
266
  property :start_time, as: 'startTime'
251
267
  collection :titles, as: 'titles', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleTypeLocalizedText, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleTypeLocalizedText::Representation
@@ -253,6 +269,21 @@ module Google
253
269
  end
254
270
  end
255
271
 
272
+ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetails
273
+ # @private
274
+ class Representation < Google::Apis::Core::JsonRepresentation
275
+ collection :introductory_pricing_specs, as: 'introductoryPricingSpecs', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec::Representation
276
+
277
+ end
278
+ end
279
+
280
+ class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ property :recurrence_count, as: 'recurrenceCount'
284
+ end
285
+ end
286
+
256
287
  class GoogleCloudPaymentsResellerSubscriptionV1Subscription
257
288
  # @private
258
289
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -264,6 +295,7 @@ module Google
264
295
  property :free_trial_end_time, as: 'freeTrialEndTime'
265
296
  property :name, as: 'name'
266
297
  property :partner_user_token, as: 'partnerUserToken'
298
+ property :processing_state, as: 'processingState'
267
299
  collection :products, as: 'products'
268
300
  collection :promotions, as: 'promotions'
269
301
  property :redirect_uri, as: 'redirectUri'
@@ -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 by the end of the current
143
- # billing cycle for their customers. It should be called directly by the partner
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. It
259
- # should be called directly by the partner using service accounts.
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-paymentsresellersubscription_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.8.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-06-28 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.4.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-paymentsresellersubscription_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.8.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: