Interface CheckoutOutcome.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CheckoutOutcome.Builder,,CheckoutOutcome> SdkBuilder<CheckoutOutcome.Builder,,CheckoutOutcome> SdkPojo
- Enclosing class:
CheckoutOutcome
-
Method Summary
Modifier and TypeMethodDescriptiondefault CheckoutOutcome.BuilderpaymentNotRequired(Consumer<SubscriptionChange.Builder> paymentNotRequired) The plan change needs no payment: a scheduled downgrade (effectiveAt is the next period boundary) or a change applied immediately or a no-op (effectiveAt is now).paymentNotRequired(SubscriptionChange paymentNotRequired) The plan change needs no payment: a scheduled downgrade (effectiveAt is the next period boundary) or a change applied immediately or a no-op (effectiveAt is now).default CheckoutOutcome.BuilderpaymentRequired(Consumer<CheckoutRedirect.Builder> paymentRequired) The money must be collected (an upgrade with an amount due now, or a paid target that needs a card captured).paymentRequired(CheckoutRedirect paymentRequired) The money must be collected (an upgrade with an amount due now, or a paid target that needs a card captured).default CheckoutOutcome.BuilderplanSelectionRequired(Consumer<PlanSelectionRedirect.Builder> planSelectionRequired) The buyer must select a plan on the hosted pricing page at pricingUrl before checkout can proceed, because no planId was supplied.planSelectionRequired(PlanSelectionRedirect planSelectionRequired) The buyer must select a plan on the hosted pricing page at pricingUrl before checkout can proceed, because no planId was supplied.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
paymentRequired
The money must be collected (an upgrade with an amount due now, or a paid target that needs a card captured). Redirect the buyer to checkoutUrl.
- Parameters:
paymentRequired- The money must be collected (an upgrade with an amount due now, or a paid target that needs a card captured). Redirect the buyer to checkoutUrl.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentRequired
The money must be collected (an upgrade with an amount due now, or a paid target that needs a card captured). Redirect the buyer to checkoutUrl.
This is a convenience method that creates an instance of theCheckoutRedirect.Builderavoiding the need to create one manually viaCheckoutRedirect.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentRequired(CheckoutRedirect).- Parameters:
paymentRequired- a consumer that will call methods onCheckoutRedirect.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
paymentNotRequired
The plan change needs no payment: a scheduled downgrade (effectiveAt is the next period boundary) or a change applied immediately or a no-op (effectiveAt is now).
- Parameters:
paymentNotRequired- The plan change needs no payment: a scheduled downgrade (effectiveAt is the next period boundary) or a change applied immediately or a no-op (effectiveAt is now).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paymentNotRequired
default CheckoutOutcome.Builder paymentNotRequired(Consumer<SubscriptionChange.Builder> paymentNotRequired) The plan change needs no payment: a scheduled downgrade (effectiveAt is the next period boundary) or a change applied immediately or a no-op (effectiveAt is now).
This is a convenience method that creates an instance of theSubscriptionChange.Builderavoiding the need to create one manually viaSubscriptionChange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topaymentNotRequired(SubscriptionChange).- Parameters:
paymentNotRequired- a consumer that will call methods onSubscriptionChange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
planSelectionRequired
The buyer must select a plan on the hosted pricing page at pricingUrl before checkout can proceed, because no planId was supplied.
- Parameters:
planSelectionRequired- The buyer must select a plan on the hosted pricing page at pricingUrl before checkout can proceed, because no planId was supplied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
planSelectionRequired
default CheckoutOutcome.Builder planSelectionRequired(Consumer<PlanSelectionRedirect.Builder> planSelectionRequired) The buyer must select a plan on the hosted pricing page at pricingUrl before checkout can proceed, because no planId was supplied.
This is a convenience method that creates an instance of thePlanSelectionRedirect.Builderavoiding the need to create one manually viaPlanSelectionRedirect.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplanSelectionRequired(PlanSelectionRedirect).- Parameters:
planSelectionRequired- a consumer that will call methods onPlanSelectionRedirect.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-