Class: Aws::AppMonetization::Types::BillableAction
- Inherits:
-
Struct
- Object
- Struct
- Aws::AppMonetization::Types::BillableAction
- Defined in:
- gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb
Overview
One billable action: something a user does that costs money to serve and can be charged for.
Constant Summary collapse
- SENSITIVE =
[:unit_cost, :money_saved, :value_per_use]
Instance Attribute Summary collapse
-
#minutes_saved ⇒ Float
Minutes one unit saves a customer compared with doing the task by hand.
-
#money_saved ⇒ Float
Money one use saves the buyer, in USD: what they would otherwise spend on it (a service, a contractor, compute or paid staff time).
-
#name ⇒ String
Action name, used as the metric key in
plans,unitPricesandcreditPacks. -
#typical_monthly_usage ⇒ Float
Typical number of units one user consumes per month.
-
#unit ⇒ String
Unit the action is counted in, for example
lessonorreport. -
#unit_cost ⇒ Float
Cost to serve one unit, in USD.
-
#value_per_use ⇒ Float
Value of one unit to a typical customer, in USD: the final dollar value of one use (
valueSharedoes not apply), for an action that saves no time or money but has a dollar value (for example a lead worth 2 USD).
Instance Attribute Details
#minutes_saved ⇒ Float
Minutes one unit saves a customer compared with doing the task by
hand. Sets the value of one use, together with hourlyRate
(required with it): minutesSaved / 60 x hourlyRate x the value
share that valueShare describes. Give at most one of
minutesSaved, moneySaved and valuePerUse per action: a request
that gives two on the same action is rejected. Rejected with
valueKind EXPERIENTIAL, as are moneySaved and valuePerUse.
Absent: this action's value, if any, is moneySaved or
valuePerUse (see valuePerUse for no value).
490 491 492 493 494 495 496 497 498 499 500 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 490 class BillableAction < Struct.new( :name, :unit, :unit_cost, :typical_monthly_usage, :minutes_saved, :money_saved, :value_per_use) SENSITIVE = [:unit_cost, :money_saved, :value_per_use] include Aws::Structure end |
#money_saved ⇒ Float
Money one use saves the buyer, in USD: what they would otherwise
spend on it (a service, a contractor, compute or paid staff time).
The server values one use at a share of it; the share is set
server-side, not an input (valueShare does not apply). Give at
most one of minutesSaved, moneySaved and valuePerUse per
action: a request that gives two on the same action is rejected. Use
valuePerUse when you have already worked out the dollar value of
one use. Rejected with valueKind EXPERIENTIAL. Absent: this
action's value, if any, is minutesSaved or valuePerUse (see
valuePerUse for no value).
490 491 492 493 494 495 496 497 498 499 500 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 490 class BillableAction < Struct.new( :name, :unit, :unit_cost, :typical_monthly_usage, :minutes_saved, :money_saved, :value_per_use) SENSITIVE = [:unit_cost, :money_saved, :value_per_use] include Aws::Structure end |
#name ⇒ String
Action name, used as the metric key in plans, unitPrices and
creditPacks. Unique within the request. Required when there is
more than one action. Absent with exactly one action: usage.
490 491 492 493 494 495 496 497 498 499 500 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 490 class BillableAction < Struct.new( :name, :unit, :unit_cost, :typical_monthly_usage, :minutes_saved, :money_saved, :value_per_use) SENSITIVE = [:unit_cost, :money_saved, :value_per_use] include Aws::Structure end |
#typical_monthly_usage ⇒ Float
Typical number of units one user consumes per month.
490 491 492 493 494 495 496 497 498 499 500 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 490 class BillableAction < Struct.new( :name, :unit, :unit_cost, :typical_monthly_usage, :minutes_saved, :money_saved, :value_per_use) SENSITIVE = [:unit_cost, :money_saved, :value_per_use] include Aws::Structure end |
#unit ⇒ String
Unit the action is counted in, for example lesson or report.
Defaults to name.
490 491 492 493 494 495 496 497 498 499 500 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 490 class BillableAction < Struct.new( :name, :unit, :unit_cost, :typical_monthly_usage, :minutes_saved, :money_saved, :value_per_use) SENSITIVE = [:unit_cost, :money_saved, :value_per_use] include Aws::Structure end |
#unit_cost ⇒ Float
Cost to serve one unit, in USD. Give it on every action or on none:
required when another action has unitCost, and when costs.source
is ACTUALS, LIVE or ESTIMATE. Absent on every action: cost to serve
is not checked (costs.source NONE). When any action's unitCost
is 0, costs.source is required.
490 491 492 493 494 495 496 497 498 499 500 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 490 class BillableAction < Struct.new( :name, :unit, :unit_cost, :typical_monthly_usage, :minutes_saved, :money_saved, :value_per_use) SENSITIVE = [:unit_cost, :money_saved, :value_per_use] include Aws::Structure end |
#value_per_use ⇒ Float
Value of one unit to a typical customer, in USD: the final dollar
value of one use (valueShare does not apply), for an action that
saves no time or money but has a dollar value (for example a lead
worth 2 USD). Give at most one of minutesSaved, moneySaved and
valuePerUse per action: a request that gives two on the same
action is rejected. One of them is required when another action has
a value basis (0 is allowed). 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. For an
action whose value is the time it saves, give minutesSaved
instead; say how the figures were worked out in
context.valueBasis. Rejected with valueKind EXPERIENTIAL.
490 491 492 493 494 495 496 497 498 499 500 |
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 490 class BillableAction < Struct.new( :name, :unit, :unit_cost, :typical_monthly_usage, :minutes_saved, :money_saved, :value_per_use) SENSITIVE = [:unit_cost, :money_saved, :value_per_use] include Aws::Structure end |