Class: Aws::AppMonetization::Types::GetPlanRecommendationRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb

Overview

Input for GetPlanRecommendation. Only segment, appType and actions are required. The optional inputs are grouped by what they describe: costs, alternatives, market and planOptions. Each optional member's doc says what its absence means. The service checks the inputs against each other itself and rejects, with a ValidationException naming the member, the combinations stated on valueKind, hourlyRate, valueShare, features, a customer type's featureWeights and the planOptions inclusion members, each an input the rest of the request leaves unused or contradicts. Members this structure does not define are ignored. Smallest call that returns MEDIUM confidence: {"segment":"CONSUMER","appType":"DAILY_WORKFLOW","actions":[{"unitCost":0.02,"typicalMonthlyUsage":30,"valuePerUse":0.40}]}.

Constant Summary collapse

SENSITIVE =
[:actions, :hourly_rate, :value_share, :features, :context]

Instance Attribute Summary collapse

Instance Attribute Details

#actions ⇒ Array<Types::BillableAction>

The things that your app charges for, each with its cost to serve, typical usage, and value to a customer. Names must be unique. Give a value basis (minutesSaved, moneySaved or valuePerUse, one per action) on every action or on none: when no action has a value basis and there is no experiential estimate (see valueKind), the price is based on cost (and comparables, if opted in, or planOptions.publishedPrice) and the confidence is LOW. Give unitCost on every action or on none.

Returns:



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#alternatives ⇒ Types::AlternativeInputs

What customers could use instead of the app: comparable apps and what they do without any product. Absent: no comparables (comparablesOptIn OPTED_OUT) and no outside options.



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#app_name ⇒ String

Display name of the app, used in the rendered text. Absent: your app.

Returns:

  • (String)


2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#app_type ⇒ String

Kind of app. It sets the service's usage and value benchmarks for this kind of app.

Returns:

  • (String)


2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#context ⇒ Types::RequestContext

Where the inputs came from, and notes on them. Changes no price, plan, verdict or confidence label: only how summary and details label and word the inputs. Absent: the rendered text uses default labels.



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#costs ⇒ Types::CostInputs

Cost inputs beyond each action's unitCost: where the costs came from, any costs that could not be priced, fixed monthly cost and target margins. Absent: costs.source is inferred from actions[].unitCost, and the costs count as complete but unconfirmed (see costs.unknown).

Returns:



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#features ⇒ Types::FeatureScores

How this app scores on the characteristics customers decide on, and how much each one matters. Required when a comparable or an outside option in alternatives is scored by features, and used only then: sent when no comparable and no outside option is scored by features, it is rejected. A comparable with alternatives.comparablesOptIn OPTED_OUT is validated but not used, so features scored only against such comparables is validated with them and changes nothing. Absent: every comparable and outside option is scored by its quality.



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#hourly_rate ⇒ Float

What one hour of a customer's time is worth, in USD: the hourly rate of the person whose time the app saves. Required when any action has minutesSaved. There is no default. It is used only with actions[].minutesSaved: sent when no action has minutesSaved, or with valueKind EXPERIENTIAL, it is rejected.

Returns:

  • (Float)


2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#market ⇒ Types::MarketInputs

Who the customers are, how many there are and, for a deployed app, how many pay today; and any checkout drop-off rates to use instead of the benchmarks. Absent: each member's default (see MarketInputs).

Returns:



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#plan_options ⇒ Types::PlanOptions

The pricing model and optional plans to consider, prices to evaluate, and the developer's own price (publishedPrice). Absent: each member's default (see PlanOptions); the service chooses the pricing model and plans.

Returns:



2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#segment ⇒ String

Who buys the app.

Returns:

  • (String)


2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#value_kind ⇒ String

What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or money value, so with EXPERIENTIAL each of actions[].minutesSaved, actions[].moneySaved, actions[].valuePerUse, hourlyRate and valueShare that is sent is rejected. With EXPERIENTIAL, no planOptions.publishedPrice and no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of its appType (there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user's usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with no planOptions.publishedPrice and no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: no unitCost, or costs.source NONE; confidence LOW).

Returns:

  • (String)


2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end

#value_share ⇒ Float

The most a typical customer would pay for the app, as a share of the time value it saves them (minutesSaved / 60 times hourlyRate). Above 1 when the minutes understate the value. The value of one use of an action with minutesSaved is minutesSaved / 60 times hourlyRate times the share; the share does not apply to moneySaved or valuePerUse. When an action's value is above 0, each outside option's monthlyCost is also weighed at this share (see OutsideOption). Absent: the service's benchmark share. For PROSUMER this value scales the service's benchmark share instead of replacing it. With usable comparables the recommended price uses the service's benchmark share for comparables instead, but this value still sets the price from the app's value alone, which the confidence and the texts compare with. Rejected unless an action's minutesSaved, moneySaved or valuePerUse is above 0 and, besides, an action has minutesSaved (0 counts) or an outside option's monthlyCost is above 0: otherwise it changes nothing (with no value above 0 there is no value estimate, and an outside option counts in full). Rejected with valueKind EXPERIENTIAL.

Returns:

  • (Float)


2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 2854

class GetPlanRecommendationRequest < Struct.new(
  :app_name,
  :segment,
  :app_type,
  :value_kind,
  :actions,
  :hourly_rate,
  :value_share,
  :features,
  :costs,
  :alternatives,
  :market,
  :plan_options,
  :context)
  SENSITIVE = [:actions, :hourly_rate, :value_share, :features, :context]
  include Aws::Structure
end