@@ -904,6 +904,11 @@ class AutoRenewingPlan
904904 # @return [Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails]
905905 attr_accessor :price_change_details
906906
907+ # Information related to a price step-up that requires user consent.
908+ # Corresponds to the JSON property `priceStepUpConsentDetails`
909+ # @return [Google::Apis::AndroidpublisherV3::PriceStepUpConsentDetails]
910+ attr_accessor :price_step_up_consent_details
911+
907912 # Represents an amount of money with its currency type.
908913 # Corresponds to the JSON property `recurringPrice`
909914 # @return [Google::Apis::AndroidpublisherV3::Money]
@@ -918,6 +923,7 @@ def update!(**args)
918923 @auto_renew_enabled = args [ :auto_renew_enabled ] if args . key? ( :auto_renew_enabled )
919924 @installment_details = args [ :installment_details ] if args . key? ( :installment_details )
920925 @price_change_details = args [ :price_change_details ] if args . key? ( :price_change_details )
926+ @price_step_up_consent_details = args [ :price_step_up_consent_details ] if args . key? ( :price_step_up_consent_details )
921927 @recurring_price = args [ :recurring_price ] if args . key? ( :recurring_price )
922928 end
923929 end
@@ -1705,6 +1711,38 @@ def update!(**args)
17051711 end
17061712 end
17071713
1714+ # Request for the purchases.subscriptionsv2.cancel API.
1715+ class CancelSubscriptionPurchaseRequest
1716+ include Google ::Apis ::Core ::Hashable
1717+
1718+ # Cancellation context of the purchases.subscriptionsv2.cancel API.
1719+ # Corresponds to the JSON property `cancellationContext`
1720+ # @return [Google::Apis::AndroidpublisherV3::CancellationContext]
1721+ attr_accessor :cancellation_context
1722+
1723+ def initialize ( **args )
1724+ update! ( **args )
1725+ end
1726+
1727+ # Update properties of this object
1728+ def update! ( **args )
1729+ @cancellation_context = args [ :cancellation_context ] if args . key? ( :cancellation_context )
1730+ end
1731+ end
1732+
1733+ # Response for the purchases.subscriptionsv2.cancel API.
1734+ class CancelSubscriptionPurchaseResponse
1735+ include Google ::Apis ::Core ::Hashable
1736+
1737+ def initialize ( **args )
1738+ update! ( **args )
1739+ end
1740+
1741+ # Update properties of this object
1742+ def update! ( **args )
1743+ end
1744+ end
1745+
17081746 # Result of the cancel survey when the subscription was canceled by the user.
17091747 class CancelSurveyResult
17101748 include Google ::Apis ::Core ::Hashable
@@ -1769,6 +1807,25 @@ def update!(**args)
17691807 end
17701808 end
17711809
1810+ # Cancellation context of the purchases.subscriptionsv2.cancel API.
1811+ class CancellationContext
1812+ include Google ::Apis ::Core ::Hashable
1813+
1814+ # Required. The type of cancellation for the purchased subscription.
1815+ # Corresponds to the JSON property `cancellationType`
1816+ # @return [String]
1817+ attr_accessor :cancellation_type
1818+
1819+ def initialize ( **args )
1820+ update! ( **args )
1821+ end
1822+
1823+ # Update properties of this object
1824+ def update! ( **args )
1825+ @cancellation_type = args [ :cancellation_type ] if args . key? ( :cancellation_type )
1826+ end
1827+ end
1828+
17721829 # Details of when the order was canceled.
17731830 class CancellationEvent
17741831 include Google ::Apis ::Core ::Hashable
@@ -6010,6 +6067,38 @@ def update!(**args)
60106067 end
60116068 end
60126069
6070+ # Information related to a price step-up that requires user consent.
6071+ class PriceStepUpConsentDetails
6072+ include Google ::Apis ::Core ::Hashable
6073+
6074+ # The deadline by which the user must provide consent. If consent is not
6075+ # provided by this time, the subscription will be canceled.
6076+ # Corresponds to the JSON property `consentDeadlineTime`
6077+ # @return [String]
6078+ attr_accessor :consent_deadline_time
6079+
6080+ # Represents an amount of money with its currency type.
6081+ # Corresponds to the JSON property `newPrice`
6082+ # @return [Google::Apis::AndroidpublisherV3::Money]
6083+ attr_accessor :new_price
6084+
6085+ # Output only. The state of the price step-up consent.
6086+ # Corresponds to the JSON property `state`
6087+ # @return [String]
6088+ attr_accessor :state
6089+
6090+ def initialize ( **args )
6091+ update! ( **args )
6092+ end
6093+
6094+ # Update properties of this object
6095+ def update! ( **args )
6096+ @consent_deadline_time = args [ :consent_deadline_time ] if args . key? ( :consent_deadline_time )
6097+ @new_price = args [ :new_price ] if args . key? ( :new_price )
6098+ @state = args [ :state ] if args . key? ( :state )
6099+ end
6100+ end
6101+
60136102 # Details of when the order was processed.
60146103 class ProcessedEvent
60156104 include Google ::Apis ::Core ::Hashable
0 commit comments