Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315378,6 +315378,8 @@
"/paymentsresellersubscription:v1/CreateSubscriptionIntent/parent": parent
"/paymentsresellersubscription:v1/CreateSubscriptionIntent/subscription": subscription
"/paymentsresellersubscription:v1/CreateSubscriptionIntent/subscriptionId": subscription_id
"/paymentsresellersubscription:v1/CycleOptions": cycle_options
"/paymentsresellersubscription:v1/CycleOptions/initialCycleDuration": initial_cycle_duration
"/paymentsresellersubscription:v1/Duration": duration
"/paymentsresellersubscription:v1/Duration/count": count
"/paymentsresellersubscription:v1/Duration/unit": unit
Expand Down Expand Up @@ -315702,6 +315704,7 @@
"/paymentsresellersubscription:v1/PromotionIntroductoryPricingDetailsIntroductoryPricingSpec/recurrenceCount": recurrence_count
"/paymentsresellersubscription:v1/PromotionIntroductoryPricingDetailsIntroductoryPricingSpec/regionCode": region_code
"/paymentsresellersubscription:v1/ResumeSubscriptionRequest": resume_subscription_request
"/paymentsresellersubscription:v1/ResumeSubscriptionRequest/cycleOptions": cycle_options
"/paymentsresellersubscription:v1/ResumeSubscriptionResponse": resume_subscription_response
"/paymentsresellersubscription:v1/ResumeSubscriptionResponse/subscription": subscription
"/paymentsresellersubscription:v1/ServicePeriod": service_period
Expand Down Expand Up @@ -315806,7 +315809,14 @@
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.extend/name": name
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.get": get_partner_subscription
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.get/name": name
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch": patch_partner_subscription_line_item
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch/name": name
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.lineItems.patch/updateMask": update_mask
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision": provision_partner_subscription
? "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/cycleOptions.initialCycleDuration.count"
: cycle_options_initial_cycle_duration_count
? "/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/cycleOptions.initialCycleDuration.unit"
: cycle_options_initial_cycle_duration_unit
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/parent": parent
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.provision/subscriptionId": subscription_id
"/paymentsresellersubscription:v1/paymentsresellersubscription.partners.subscriptions.resume": resume_partner_subscription
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-paymentsresellersubscription_v1

### v0.58.0 (2025-10-19)

* Regenerated from discovery document revision 20251012

### v0.57.0 (2025-10-12)

* Regenerated from discovery document revision 20251005
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,25 @@ def update!(**args)
end
end

# The cycle options when starting and resuming a subscription.
class CycleOptions
include Google::Apis::Core::Hashable

# Describes the length of a period of a time.
# Corresponds to the JSON property `initialCycleDuration`
# @return [Google::Apis::PaymentsresellersubscriptionV1::Duration]
attr_accessor :initial_cycle_duration

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@initial_cycle_duration = args[:initial_cycle_duration] if args.key?(:initial_cycle_duration)
end
end

# Describes the length of a period of a time.
class Duration
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -1004,12 +1023,18 @@ def update!(**args)
class ResumeSubscriptionRequest
include Google::Apis::Core::Hashable

# The cycle options when starting and resuming a subscription.
# Corresponds to the JSON property `cycleOptions`
# @return [Google::Apis::PaymentsresellersubscriptionV1::CycleOptions]
attr_accessor :cycle_options

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@cycle_options = args[:cycle_options] if args.key?(:cycle_options)
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module PaymentsresellersubscriptionV1
# Version of the google-apis-paymentsresellersubscription_v1 gem
GEM_VERSION = "0.57.0"
GEM_VERSION = "0.58.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.18.0"

# Revision of the discovery document this client was generated from
REVISION = "20251005"
REVISION = "20251012"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class CycleOptions
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class Duration
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -356,6 +362,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class CycleOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :initial_cycle_duration, as: 'initialCycleDuration', class: Google::Apis::PaymentsresellersubscriptionV1::Duration, decorator: Google::Apis::PaymentsresellersubscriptionV1::Duration::Representation

end
end

class Duration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -622,6 +636,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class ResumeSubscriptionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cycle_options, as: 'cycleOptions', class: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions, decorator: Google::Apis::PaymentsresellersubscriptionV1::CycleOptions::Representation

end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ def get_partner_subscription(name, fields: nil, quota_user: nil, options: nil, &
# Required. The parent resource name, which is the identifier of the partner. It
# will have the format of "partners/`partner_id`".
# @param [Google::Apis::PaymentsresellersubscriptionV1::Subscription] subscription_object
# @param [Fixnum] cycle_options_initial_cycle_duration_count
# number of duration units to be included.
# @param [String] cycle_options_initial_cycle_duration_unit
# The unit used for the duration
# @param [String] subscription_id
# Required. Identifies the subscription resource on the Partner side. The value
# is restricted to 63 ASCII characters at the maximum. If a subscription was
Expand All @@ -409,13 +413,15 @@ def get_partner_subscription(name, fields: nil, quota_user: nil, options: nil, &
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def provision_partner_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def provision_partner_subscription(parent, subscription_object = nil, cycle_options_initial_cycle_duration_count: nil, cycle_options_initial_cycle_duration_unit: nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/subscriptions:provision', options)
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
command.request_object = subscription_object
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::Subscription::Representation
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::Subscription
command.params['parent'] = parent unless parent.nil?
command.query['cycleOptions.initialCycleDuration.count'] = cycle_options_initial_cycle_duration_count unless cycle_options_initial_cycle_duration_count.nil?
command.query['cycleOptions.initialCycleDuration.unit'] = cycle_options_initial_cycle_duration_unit unless cycle_options_initial_cycle_duration_unit.nil?
command.query['subscriptionId'] = subscription_id unless subscription_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
Expand Down Expand Up @@ -533,6 +539,46 @@ def undo_partner_subscription_cancel(name, undo_cancel_subscription_request_obje
execute_or_queue_command(command, &block)
end

# Updates a line item of a subscription. It should be autenticated with a
# service account.
# @param [String] name
# Identifier. Resource name of the line item. Format: partners/`partner`/
# subscriptions/`subscription`/lineItems/`lineItem`
# @param [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] subscription_line_item_object
# @param [String] update_mask
# Required. The list of fields to update. Only a limited set of fields can be
# updated. The allowed fields are the following: - `product_payload.
# googleHomePayload.googleStructureId`
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_partner_subscription_line_item(name, subscription_line_item_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:patch, 'v1/{+name}', options)
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation
command.request_object = subscription_line_item_object
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem::Representation
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::SubscriptionLineItem
command.params['name'] = name unless name.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# This API replaces user authorized OAuth consent based APIs (Create, Entitle).
# Issues a timed session token for the given user intent. You can use the
# session token to redirect the user to Google to finish the signup flow. You
Expand Down