Class: Aws::AppMonetization::Types::CheckoutOutcome
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMonetization::Types::CheckoutOutcome
- Defined in:
- gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb
Overview
CheckoutOutcome is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of CheckoutOutcome corresponding to the set member.
The outcome of a subscription checkout. Exactly one member is set.
Defined Under Namespace
Classes: PaymentNotRequired, PaymentRequired, PlanSelectionRequired, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#payment_not_required ⇒ Types::SubscriptionChange
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).
-
#payment_required ⇒ Types::CheckoutRedirect
The money must be collected (an upgrade with an amount due now, or a paid target that needs a card captured).
-
#plan_selection_required ⇒ Types::PlanSelectionRedirect
The buyer must select a plan on the hosted pricing page at pricingUrl before checkout can proceed, because no planId was supplied.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#payment_not_required ⇒ Types::SubscriptionChange
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).
694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 694 class CheckoutOutcome < Struct.new( :payment_required, :payment_not_required, :plan_selection_required, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class PaymentRequired < CheckoutOutcome; end class PaymentNotRequired < CheckoutOutcome; end class PlanSelectionRequired < CheckoutOutcome; end class Unknown < CheckoutOutcome; end end |
#payment_required ⇒ Types::CheckoutRedirect
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.
694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 694 class CheckoutOutcome < Struct.new( :payment_required, :payment_not_required, :plan_selection_required, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class PaymentRequired < CheckoutOutcome; end class PaymentNotRequired < CheckoutOutcome; end class PlanSelectionRequired < CheckoutOutcome; end class Unknown < CheckoutOutcome; end end |
#plan_selection_required ⇒ Types::PlanSelectionRedirect
The buyer must select a plan on the hosted pricing page at pricingUrl before checkout can proceed, because no planId was supplied.
694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 694 class CheckoutOutcome < Struct.new( :payment_required, :payment_not_required, :plan_selection_required, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class PaymentRequired < CheckoutOutcome; end class PaymentNotRequired < CheckoutOutcome; end class PlanSelectionRequired < CheckoutOutcome; end class Unknown < CheckoutOutcome; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
694 695 696 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 694 def unknown @unknown end |