Cloud Commerce Producer v1beta API - Enum PrivateOffer.Types.Term.Types.EndPolicy (1.0.0-beta01)
public enum PrivateOffer.Types.Term.Types.EndPolicy
Reference documentation and code samples for the Cloud Commerce Producer v1beta API enum PrivateOffer.Types.Term.Types.EndPolicy.
Defines when an offer should end.
Namespace
Google.Cloud.CommerceProducer.V1Beta
Assembly
Google.Cloud.CommerceProducer.V1Beta.dll
Fields
|
| Name |
Description |
AfterDuration |
Offer ends after the specified duration.
If this is set, then duration_months must be positive.
|
MatchAmendedOffer |
Offer coterms to the amended offer - the offer ends at the end of the
amended offer's term
For example, if the amended offer starts on 01/15/24, and has a
duration of 6 months, then it ends on 07/15/24. If the current offer
coterms to the previous offer, and the current offer starts on
05/06/24, then it will still end on 07/15/24. Assuming the current
offer renews 3 times, then the terms on the current offer will be:
- 05/06/24 - 07/15/24 (First term, ends on 07/15 to coterm with the
amended offer)
- 07/15/24 - 01/15/25 (First renewal term)
- 01/15/25 - 07/15/25 (Second renewal term)
- 07/15/25 - 01/15/26 (Third renewal term)
As a contrast, if the current offer does not coterm with the amended
offer (such as when end_policy is AFTER_DURATION), then the
terms will be:
- 05/06/24 - 11/06/24 (First term, ends on 11/06, no coterming)
- 11/06/24 - 05/06/25 (First renewal term)
- 05/06/25 - 11/06/25 (Second renewal term)
- 11/06/25 - 05/06/26 (Third renewal term)
If this is set, then the following conditions must be met:
single_product_offer.amended_private_offer must be set, and the
amended private offer must not be ended.
- The proration policy must not change (e.g., you cannot switch
between
MONTHLY_PRORATED and MONTHLY_NOT_PRORATED).
- The current offer must not have custom intervals (where
custom_interval_price is set).
term.duration_months must match the amended private offer's
duration.
- The amended private offer must not have a standard interval
of
MONTHLY_POSTPAY.
This is currently not supported.
|
ScheduledEndTime |
Offer ends at the schduled time.
|
Unspecified |
Default value. This value is unused.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-30 UTC."],[],[]]