Skip to content

Commit b9a0fb0

Browse files
feat: Automated regeneration of paymentsresellersubscription v1 client (#18719)
Auto-created at 2024-04-07 10:09:54 +0000 using the toys pull request generator.
1 parent 6acc2c7 commit b9a0fb0

5 files changed

Lines changed: 20 additions & 6 deletions

File tree

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270180,6 +270180,7 @@
270180270180
"/paymentsresellersubscription:v1/GoogleCloudPaymentsResellerSubscriptionV1Subscription/promotionSpecs/promotion_spec": promotion_spec
270181270181
"/paymentsresellersubscription:v1/GoogleCloudPaymentsResellerSubscriptionV1Subscription/promotions": promotions
270182270182
"/paymentsresellersubscription:v1/GoogleCloudPaymentsResellerSubscriptionV1Subscription/promotions/promotion": promotion
270183+
"/paymentsresellersubscription:v1/GoogleCloudPaymentsResellerSubscriptionV1Subscription/purchaseTime": purchase_time
270183270184
"/paymentsresellersubscription:v1/GoogleCloudPaymentsResellerSubscriptionV1Subscription/redirectUri": redirect_uri
270184270185
"/paymentsresellersubscription:v1/GoogleCloudPaymentsResellerSubscriptionV1Subscription/renewalTime": renewal_time
270185270186
"/paymentsresellersubscription:v1/GoogleCloudPaymentsResellerSubscriptionV1Subscription/serviceLocation": service_location

generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-paymentsresellersubscription_v1
22

3+
### v0.41.0 (2024-04-07)
4+
5+
* Regenerated from discovery document revision 20240404
6+
37
### v0.40.0 (2024-03-03)
48

59
* Regenerated from discovery document revision 20240226

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/classes.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription
885885
# @return [Array<String>]
886886
attr_accessor :promotions
887887

888+
# Optional. The timestamp when the user transaction was made with the Partner.
889+
# Specify for the case of "bundle with choice", and it must be before the
890+
# provision_time (when the user makes a selection).
891+
# Corresponds to the JSON property `purchaseTime`
892+
# @return [String]
893+
attr_accessor :purchase_time
894+
888895
# Output only. The place where partners should redirect the end-user to after
889896
# creation. This field might also be populated when creation failed. However,
890897
# Partners should always prepare a default URL to redirect the user in case this
@@ -944,6 +951,7 @@ def update!(**args)
944951
@products = args[:products] if args.key?(:products)
945952
@promotion_specs = args[:promotion_specs] if args.key?(:promotion_specs)
946953
@promotions = args[:promotions] if args.key?(:promotions)
954+
@purchase_time = args[:purchase_time] if args.key?(:purchase_time)
947955
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
948956
@renewal_time = args[:renewal_time] if args.key?(:renewal_time)
949957
@service_location = args[:service_location] if args.key?(:service_location)
@@ -1009,10 +1017,10 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
10091017
# @return [Fixnum]
10101018
attr_accessor :line_item_index
10111019

1012-
# Optional. The promotions applied on the line item. It can be: - a free trial
1013-
# promotion, which overrides the subscription-level free trial promotion. - an
1014-
# introductory pricing promotion. When used as input in Create or Provision API,
1015-
# specify its resource name only.
1020+
# Optional. The promotions applied on the line item. It can be: - an
1021+
# introductory pricing promotion. - a free trial promotion. This feature is not
1022+
# enabled. If used, the request will be rejected. When used as input in Create
1023+
# or Provision API, specify its resource name only.
10161024
# Corresponds to the JSON property `lineItemPromotionSpecs`
10171025
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec>]
10181026
attr_accessor :line_item_promotion_specs

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module PaymentsresellersubscriptionV1
1818
# Version of the google-apis-paymentsresellersubscription_v1 gem
19-
GEM_VERSION = "0.40.0"
19+
GEM_VERSION = "0.41.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.14.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240226"
25+
REVISION = "20240404"
2626
end
2727
end
2828
end

generated/google-apis-paymentsresellersubscription_v1/lib/google/apis/paymentsresellersubscription_v1/representations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
502502
collection :promotion_specs, as: 'promotionSpecs', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec::Representation
503503

504504
collection :promotions, as: 'promotions'
505+
property :purchase_time, as: 'purchaseTime'
505506
property :redirect_uri, as: 'redirectUri'
506507
property :renewal_time, as: 'renewalTime'
507508
property :service_location, as: 'serviceLocation', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Location, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Location::Representation

0 commit comments

Comments
 (0)