google-apis-paymentsresellersubscription_v1 0.15.0 → 0.18.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: 773b310e7dfe848472bd4e0dcdbc6acebcaa38329fff00ae6602e2119891472e
4
- data.tar.gz: 5026d25793aedc4028acf5b153ce4f5fa9be7f8a05d3e1f0135c778b4f8f89c1
3
+ metadata.gz: e3062edc0b93f82d1dfaa400ddac3e8e20542b9fc5453bb2cae4deda44b95c81
4
+ data.tar.gz: a21aa1b92bb7903503751169448a4a6fc0919a079624b2962b4e8662bffce9a0
5
5
  SHA512:
6
- metadata.gz: fdccceb333e254b097a1734f9f37aa4725fa4e96743fffa775bcb5146793614f545ec9e7e46a92b3cb447e65226c24db48b05f75d1551c9420d771b02fb1b400
7
- data.tar.gz: 3a6f8bf5ba5ba033a3569761c90ab6c60ec88f733ee585961c7a656714a72902e79bb756d460d807babb0e88ec464f195d294e4c12e5c2048d5843ac80117193
6
+ metadata.gz: 1aba2b852faa4ec85ac8b607a76ad42bec38d76162713255ed60076f5bfa6c276656a23243c2aea1cd04656f62a11ad8ac80d779ce7da02fd0b7da4dc8225d7f
7
+ data.tar.gz: cf2b836624ae99a8b3919600a502bf206ae3b1d200900f0728d0b833b4372d658befe53ffbed159cd4dd45507a8b2710480286fe274b8ee88f2d43c739eef03b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-paymentsresellersubscription_v1
2
2
 
3
+ ### v0.18.0 (2022-09-02)
4
+
5
+ * Regenerated from discovery document revision 20220901
6
+
7
+ ### v0.17.0 (2022-07-07)
8
+
9
+ * Regenerated from discovery document revision 20220706
10
+ * Regenerated using generator version 0.9.0
11
+
12
+ ### v0.16.0 (2022-07-02)
13
+
14
+ * Regenerated using generator version 0.8.0
15
+
3
16
  ### v0.15.0 (2022-06-21)
4
17
 
5
18
  * Regenerated using generator version 0.7.0
@@ -225,13 +225,17 @@ 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
+ # applicable_products` - `region_codes` - `youtube_payload.
234
+ # partner_eligibility_id` - `youtube_payload.postal_code` - Unless explicitly
235
+ # mentioned above, other features are not supported. Example: `
236
+ # applicable_products:partners/partner1/products/product1 AND region_codes:US
237
+ # AND youtube_payload.postal_code=94043 AND youtube_payload.
238
+ # partner_eligibility_id=eligibility-id`
235
239
  # Corresponds to the JSON property `filter`
236
240
  # @return [String]
237
241
  attr_accessor :filter
@@ -517,6 +521,32 @@ module Google
517
521
  end
518
522
  end
519
523
 
524
+ # A description of what time period or moment in time the product or service is
525
+ # being delivered over.
526
+ class GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod
527
+ include Google::Apis::Core::Hashable
528
+
529
+ # Optional. The end time of the service period. Time is exclusive.
530
+ # Corresponds to the JSON property `endTime`
531
+ # @return [String]
532
+ attr_accessor :end_time
533
+
534
+ # Required. The start time of the service period. Time is inclusive.
535
+ # Corresponds to the JSON property `startTime`
536
+ # @return [String]
537
+ attr_accessor :start_time
538
+
539
+ def initialize(**args)
540
+ update!(**args)
541
+ end
542
+
543
+ # Update properties of this object
544
+ def update!(**args)
545
+ @end_time = args[:end_time] if args.key?(:end_time)
546
+ @start_time = args[:start_time] if args.key?(:start_time)
547
+ end
548
+ end
549
+
520
550
  # A Subscription resource managed by 3P Partners.
521
551
  class GoogleCloudPaymentsResellerSubscriptionV1Subscription
522
552
  include Google::Apis::Core::Hashable
@@ -556,8 +586,9 @@ module Google
556
586
  # @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem>]
557
587
  attr_accessor :line_items
558
588
 
559
- # Output only. Response only. Resource name of the subscription. It will have
560
- # the format of "partners/`partner_id`/subscriptions/`subscription_id`"
589
+ # Optional. Resource name of the subscription. It will have the format of "
590
+ # partners/`partner_id`/subscriptions/`subscription_id`". This is available for
591
+ # authorizeAddon, but otherwise is response only.
561
592
  # Corresponds to the JSON property `name`
562
593
  # @return [String]
563
594
  attr_accessor :name
@@ -685,7 +716,7 @@ module Google
685
716
  end
686
717
  end
687
718
 
688
- # Individual line item definition of a subscription. Next id: 6
719
+ # Individual line item definition of a subscription. Next id: 8
689
720
  class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
690
721
  include Google::Apis::Core::Hashable
691
722
 
@@ -710,12 +741,22 @@ module Google
710
741
  # @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec>]
711
742
  attr_accessor :line_item_promotion_specs
712
743
 
744
+ # Details for a ONE_TIME recurrence line item.
745
+ # Corresponds to the JSON property `oneTimeRecurrenceDetails`
746
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails]
747
+ attr_accessor :one_time_recurrence_details
748
+
713
749
  # Required. Product resource name that identifies one the line item The format
714
750
  # is 'partners/`partner_id`/products/`product_id`'.
715
751
  # Corresponds to the JSON property `product`
716
752
  # @return [String]
717
753
  attr_accessor :product
718
754
 
755
+ # Output only. The recurrence type of the line item.
756
+ # Corresponds to the JSON property `recurrenceType`
757
+ # @return [String]
758
+ attr_accessor :recurrence_type
759
+
719
760
  # Output only. The state of the line item.
720
761
  # Corresponds to the JSON property `state`
721
762
  # @return [String]
@@ -730,11 +771,33 @@ module Google
730
771
  @description = args[:description] if args.key?(:description)
731
772
  @line_item_free_trial_end_time = args[:line_item_free_trial_end_time] if args.key?(:line_item_free_trial_end_time)
732
773
  @line_item_promotion_specs = args[:line_item_promotion_specs] if args.key?(:line_item_promotion_specs)
774
+ @one_time_recurrence_details = args[:one_time_recurrence_details] if args.key?(:one_time_recurrence_details)
733
775
  @product = args[:product] if args.key?(:product)
776
+ @recurrence_type = args[:recurrence_type] if args.key?(:recurrence_type)
734
777
  @state = args[:state] if args.key?(:state)
735
778
  end
736
779
  end
737
780
 
781
+ # Details for a ONE_TIME recurrence line item.
782
+ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails
783
+ include Google::Apis::Core::Hashable
784
+
785
+ # A description of what time period or moment in time the product or service is
786
+ # being delivered over.
787
+ # Corresponds to the JSON property `servicePeriod`
788
+ # @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod]
789
+ attr_accessor :service_period
790
+
791
+ def initialize(**args)
792
+ update!(**args)
793
+ end
794
+
795
+ # Update properties of this object
796
+ def update!(**args)
797
+ @service_period = args[:service_period] if args.key?(:service_period)
798
+ end
799
+ end
800
+
738
801
  # Describes the spec for one promotion.
739
802
  class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
740
803
  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.15.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.7.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 = "20220901"
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: - `region_codes` - `youtube_payload.
62
+ # partner_eligibility_id` - `youtube_payload.postal_code` - Unless explicitly
63
+ # mentioned above, other features are not supported. Example: `region_codes:US
64
+ # AND youtube_payload.postal_code=94043 AND youtube_payload.
65
+ # partner_eligibility_id=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,17 @@ 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
+ # applicable_products` - `region_codes` - `youtube_payload.
150
+ # partner_eligibility_id` - `youtube_payload.postal_code` - Unless explicitly
151
+ # mentioned above, other features are not supported. Example: `
152
+ # applicable_products:partners/partner1/products/product1 AND region_codes:US
153
+ # AND youtube_payload.postal_code=94043 AND youtube_payload.
154
+ # partner_eligibility_id=eligibility-id`
148
155
  # @param [Fixnum] page_size
149
156
  # Optional. The maximum number of promotions to return. The service may return
150
157
  # 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.15.0
4
+ version: 0.18.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-06-27 00:00:00.000000000 Z
11
+ date: 2022-09-05 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.6'
19
+ version: '0.7'
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.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.18.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: []