Class: Aws::AppMonetization::Types::CustomCharge

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

Overview

One developer-computed charge.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#amount ⇒ String

The charge, as a decimal string in major currency units (for example, "12.50").

Returns:

  • (String)


1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1636

class CustomCharge < Struct.new(
  :charge_id,
  :description,
  :amount,
  :currency,
  :metric_id,
  :tax_code)
  SENSITIVE = []
  include Aws::Structure
end

#charge_id ⇒ String

Caller-chosen stable id for THIS charge. It is the idempotency and replace key: re-submitting the same chargeId within its assigned period upserts the charge in place. A chargeId is bound to the first period it is accepted into; re-submitting it after that period rolls over is refused (ConflictException) rather than billing it again, so it must be unique per charge for this user across all periods — use a UUID or your own invoice-line id (the caller does not know the billing period, so it cannot be encoded in the id).

Returns:

  • (String)


1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1636

class CustomCharge < Struct.new(
  :charge_id,
  :description,
  :amount,
  :currency,
  :metric_id,
  :tax_code)
  SENSITIVE = []
  include Aws::Structure
end

#currency ⇒ String

The ISO 4217 currency of the amount. Only USD is supported; a non-USD value is rejected.

Returns:

  • (String)


1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1636

class CustomCharge < Struct.new(
  :charge_id,
  :description,
  :amount,
  :currency,
  :metric_id,
  :tax_code)
  SENSITIVE = []
  include Aws::Structure
end

#description ⇒ String

Human-readable description, surfaced on the invoice line.

Returns:

  • (String)


1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1636

class CustomCharge < Struct.new(
  :charge_id,
  :description,
  :amount,
  :currency,
  :metric_id,
  :tax_code)
  SENSITIVE = []
  include Aws::Structure
end

#metric_id ⇒ String

Optional metric this charge derives from. Omitted for a charge not tied to a metric (a flat or custom fee).

Returns:

  • (String)


1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1636

class CustomCharge < Struct.new(
  :charge_id,
  :description,
  :amount,
  :currency,
  :metric_id,
  :tax_code)
  SENSITIVE = []
  include Aws::Structure
end

#tax_code ⇒ String

Optional product tax code; defaults to the service default when omitted.

Returns:

  • (String)


1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1636

class CustomCharge < Struct.new(
  :charge_id,
  :description,
  :amount,
  :currency,
  :metric_id,
  :tax_code)
  SENSITIVE = []
  include Aws::Structure
end