google-apis-paymentsresellersubscription_v1 0.16.0 → 0.19.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: 12b114313272f461aef25afb5e167f0f27ef605deb34be93313b7098e5c2a92d
4
- data.tar.gz: 93d4c5fadfec9cf3cf2927939bfeb690546edf89684078a558f033ce762b7a24
3
+ metadata.gz: 5a996b90ec579704e5e34a8b54612407e56de7671f629139ea4ab7e0bca5956c
4
+ data.tar.gz: dca20a9c4baef1d770363d47d859dacb91a1ba1c5b772483c411fec4c68ae695
5
5
  SHA512:
6
- metadata.gz: ef68c63c36eec87be0c9de42e9add838fa38c30a3e3cab7577993325770f2bc52a66b9d7a6f48566f5ef1fc49c902b837507b6f5e48b64ee6d0a485d75ac0265
7
- data.tar.gz: 8ba6eec68b3c228dad915891142d270f19939fc85e6b29df1a88ce323a3d927a80f86a5961ac73a4a36fcd32df2b9eed3ee39552189a09b71b1f2651f59d4b13
6
+ metadata.gz: 66da724016176a6c964021f21107198db0d69257919bc052d64321568e583663b485589821ecb3702cc079091fbd91103aa200113dda2ad9f595756a31a604d1
7
+ data.tar.gz: a5f999a407372d92ddecc83aab395a3d10a04d9d7d7696d4d13f9bddc84a99dbbf7cc13303de88c8949d9b2e8dd29ef3bd9bd14cfe4cb4fafe15bfc222a5b137
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-paymentsresellersubscription_v1
2
2
 
3
+ ### v0.19.0 (2022-09-10)
4
+
5
+ * Regenerated from discovery document revision 20220908
6
+
7
+ ### v0.18.0 (2022-09-02)
8
+
9
+ * Regenerated from discovery document revision 20220901
10
+
11
+ ### v0.17.0 (2022-07-07)
12
+
13
+ * Regenerated from discovery document revision 20220706
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.16.0 (2022-07-02)
4
17
 
5
18
  * Regenerated using generator version 0.8.0
@@ -225,13 +225,16 @@ module Google
225
225
  class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest
226
226
  include Google::Apis::Core::Hashable
227
227
 
228
- # Optional. Specifies the filters for the promotion results. The syntax defined
229
- # in the EBNF grammar: https://google.aip.dev/assets/misc/ebnf-filtering.txt. An
230
- # error will be thrown if any specified parameter is not supported. Currently,
231
- # it can only be used by Youtube partners. Allowed parameters are: - regionCodes
232
- # - zipCode - eligibilityId - applicableProducts Multiple parameters can be
233
- # specified, for example: "regionCodes=US zipCode=94043 eligibilityId=
234
- # 2022H1Campaign", or "applicableProducts=partners/p1/products/product2"
228
+ # Optional. Specifies the filters for the promotion results. The syntax is
229
+ # defined in https://google.aip.dev/160 with the following caveats: - Only the
230
+ # following features are supported: - Logical operator `AND` - Comparison
231
+ # operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (
232
+ # no wildcards `*`) - Only the following fields are supported: - `
233
+ # applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `
234
+ # youtubePayload.postalCode` - Unless explicitly mentioned above, other features
235
+ # are not supported. Example: `applicableProducts:partners/partner1/products/
236
+ # product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND
237
+ # youtubePayload.partnerEligibilityId=eligibility-id`
235
238
  # Corresponds to the JSON property `filter`
236
239
  # @return [String]
237
240
  attr_accessor :filter
@@ -517,6 +520,32 @@ module Google
517
520
  end
518
521
  end
519
522
 
523
+ # A description of what time period or moment in time the product or service is
524
+ # being delivered over.
525
+ class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
526
+ include Google::Apis::Core::Hashable
527
+
528
+ # Optional. The end time of the service period. Time is exclusive.
529
+ # Corresponds to the JSON property `endTime`
530
+ # @return [String]
531
+ attr_accessor :end_time
532
+
533
+ # Required. The start time of the service period. Time is inclusive.
534
+ # Corresponds to the JSON property `startTime`
535
+ # @return [String]
536
+ attr_accessor :start_time
537
+
538
+ def initialize(**args)
539
+ update!(**args)
540
+ end
541
+
542
+ # Update properties of this object
543
+ def update!(**args)
544
+ @end_time = args[:end_time] if args.key?(:end_time)
545
+ @start_time = args[:start_time] if args.key?(:start_time)
546
+ end
547
+ end
548
+
520
549
  # A Subscription resource managed by 3P Partners.
521
550
  class GoogleCloudPaymentsResellerSubscriptionV1Subscription
522
551
  include Google::Apis::Core::Hashable
@@ -556,8 +585,9 @@ module Google
556
585
  # @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem>]
557
586
  attr_accessor :line_items
558
587
 
559
- # Output only. Response only. Resource name of the subscription. It will have
560
- # the format of "partners/`partner_id`/subscriptions/`subscription_id`"
588
+ # Optional. Resource name of the subscription. It will have the format of "
589
+ # partners/`partner_id`/subscriptions/`subscription_id`". This is available for
590
+ # authorizeAddon, but otherwise is response only.
561
591
  # Corresponds to the JSON property `name`
562
592
  # @return [String]
563
593
  attr_accessor :name
@@ -685,7 +715,7 @@ module Google
685
715
  end
686
716
  end
687
717
 
688
- # Individual line item definition of a subscription. Next id: 6
718
+ # Individual line item definition of a subscription. Next id: 8
689
719
  class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
690
720
  include Google::Apis::Core::Hashable
691
721
 
@@ -710,12 +740,22 @@ module Google
710
740
  # @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec>]
711
741
  attr_accessor :line_item_promotion_specs
712
742
 
743
+ # Details for a ONE_TIME recurrence line item.
744
+ # Corresponds to the JSON property `oneTimeRecurrenceDetails`
745
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails]
746
+ attr_accessor :one_time_recurrence_details
747
+
713
748
  # Required. Product resource name that identifies one the line item The format
714
749
  # is 'partners/`partner_id`/products/`product_id`'.
715
750
  # Corresponds to the JSON property `product`
716
751
  # @return [String]
717
752
  attr_accessor :product
718
753
 
754
+ # Output only. The recurrence type of the line item.
755
+ # Corresponds to the JSON property `recurrenceType`
756
+ # @return [String]
757
+ attr_accessor :recurrence_type
758
+
719
759
  # Output only. The state of the line item.
720
760
  # Corresponds to the JSON property `state`
721
761
  # @return [String]
@@ -730,11 +770,33 @@ module Google
730
770
  @description = args[:description] if args.key?(:description)
731
771
  @line_item_free_trial_end_time = args[:line_item_free_trial_end_time] if args.key?(:line_item_free_trial_end_time)
732
772
  @line_item_promotion_specs = args[:line_item_promotion_specs] if args.key?(:line_item_promotion_specs)
773
+ @one_time_recurrence_details = args[:one_time_recurrence_details] if args.key?(:one_time_recurrence_details)
733
774
  @product = args[:product] if args.key?(:product)
775
+ @recurrence_type = args[:recurrence_type] if args.key?(:recurrence_type)
734
776
  @state = args[:state] if args.key?(:state)
735
777
  end
736
778
  end
737
779
 
780
+ # Details for a ONE_TIME recurrence line item.
781
+ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
782
+ include Google::Apis::Core::Hashable
783
+
784
+ # A description of what time period or moment in time the product or service is
785
+ # being delivered over.
786
+ # Corresponds to the JSON property `servicePeriod`
787
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod]
788
+ attr_accessor :service_period
789
+
790
+ def initialize(**args)
791
+ update!(**args)
792
+ end
793
+
794
+ # Update properties of this object
795
+ def update!(**args)
796
+ @service_period = args[:service_period] if args.key?(:service_period)
797
+ end
798
+ end
799
+
738
800
  # Describes the spec for one promotion.
739
801
  class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
740
802
  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.16.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220614"
25
+ REVISION = "20220908"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class GoogleCloudPaymentsResellerSubscriptionV1Subscription
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -142,6 +148,12 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
145
157
  class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
146
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
159
 
@@ -326,6 +338,14 @@ module Google
326
338
  end
327
339
  end
328
340
 
341
+ class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ property :end_time, as: 'endTime'
345
+ property :start_time, as: 'startTime'
346
+ end
347
+ end
348
+
329
349
  class GoogleCloudPaymentsResellerSubscriptionV1Subscription
330
350
  # @private
331
351
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -369,11 +389,22 @@ module Google
369
389
  property :line_item_free_trial_end_time, as: 'lineItemFreeTrialEndTime'
370
390
  collection :line_item_promotion_specs, as: 'lineItemPromotionSpecs', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec::Representation
371
391
 
392
+ property :one_time_recurrence_details, as: 'oneTimeRecurrenceDetails', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails::Representation
393
+
372
394
  property :product, as: 'product'
395
+ property :recurrence_type, as: 'recurrenceType'
373
396
  property :state, as: 'state'
374
397
  end
375
398
  end
376
399
 
400
+ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
401
+ # @private
402
+ class Representation < Google::Apis::Core::JsonRepresentation
403
+ property :service_period, as: 'servicePeriod', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod::Representation
404
+
405
+ end
406
+ end
407
+
377
408
  class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
378
409
  # @private
379
410
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -54,12 +54,15 @@ module Google
54
54
  # @param [String] parent
55
55
  # Required. The parent, the partner that can resell. Format: partners/`partner`
56
56
  # @param [String] filter
57
- # Optional. Specifies the filters for the products results. The syntax defined
58
- # in the EBNF grammar: https://google.aip.dev/assets/misc/ebnf-filtering.txt. An
59
- # error will be thrown if any specified parameter is not supported. Currently,
60
- # it can only be used by Youtube partners. Allowed parameters are: - regionCodes
61
- # - zipCode - eligibilityId Multiple parameters can be specified, for example: "
62
- # regionCodes=US zipCode=94043 eligibilityId=2022H1Campaign"
57
+ # Optional. Specifies the filters for the product results. The syntax is defined
58
+ # in https://google.aip.dev/160 with the following caveats: - Only the following
59
+ # features are supported: - Logical operator `AND` - Comparison operator `=` (no
60
+ # wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) -
61
+ # Only the following fields are supported: - `regionCodes` - `youtubePayload.
62
+ # partnerEligibilityId` - `youtubePayload.postalCode` - Unless explicitly
63
+ # mentioned above, other features are not supported. Example: `regionCodes:US
64
+ # AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=
65
+ # eligibility-id`
63
66
  # @param [Fixnum] page_size
64
67
  # Optional. The maximum number of products to return. The service may return
65
68
  # fewer than this value. If unspecified, at most 50 products will be returned.
@@ -138,13 +141,16 @@ module Google
138
141
  # @param [String] parent
139
142
  # Required. The parent, the partner that can resell. Format: partners/`partner`
140
143
  # @param [String] filter
141
- # Optional. Specifies the filters for the promotion results. The syntax defined
142
- # in the EBNF grammar: https://google.aip.dev/assets/misc/ebnf-filtering.txt. An
143
- # error will be thrown if the specified parameter(s) is not supported. Currently,
144
- # it can only be used by Youtube partners. Allowed parameters are: -
145
- # region_codes: "US" - zip_code: "94043" - eligibility_id: "2022H1Campaign"
146
- # Multiple parameters can be specified, for example: "region_codes=US zip_code=
147
- # 94043 eligibility_id=2022H1Campaign"
144
+ # Optional. Specifies the filters for the promotion results. The syntax is
145
+ # defined in https://google.aip.dev/160 with the following caveats: - Only the
146
+ # following features are supported: - Logical operator `AND` - Comparison
147
+ # operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (
148
+ # no wildcards `*`) - Only the following fields are supported: - `
149
+ # applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `
150
+ # youtubePayload.postalCode` - Unless explicitly mentioned above, other features
151
+ # are not supported. Example: `applicableProducts:partners/partner1/products/
152
+ # product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND
153
+ # youtubePayload.partnerEligibilityId=eligibility-id`
148
154
  # @param [Fixnum] page_size
149
155
  # Optional. The maximum number of promotions to return. The service may return
150
156
  # fewer than this value. If unspecified, at most 50 products will be returned.
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.16.0
4
+ version: 0.19.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: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
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.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.19.0
62
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: []