Skip to main content

Commerce.RecurrenceMode

Enum

Describes how a subscription pricing phase repeats over time.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Since Lens Scripting v377

Describes how a subscription pricing phase repeats over time.

Index

Example

function describePhase(phase: Commerce.PricingPhase) {
if (phase.recurrenceMode === Commerce.RecurrenceMode.FiniteRecurring) {
print(`Repeats for ${phase.billingCycleCount} billing cycles`);
} else if (phase.recurrenceMode === Commerce.RecurrenceMode.InfiniteRecurring) {
print("Repeats until the subscription is canceled");
} else {
print("One-time charge");
}
}

Enumeration Members

FiniteRecurring

FiniteRecurring: number

SPECS

The pricing phase repeats for a fixed number of billing periods given by PricingPhase#billingCycleCount.

Since

Lens Scripting Version 377


InfiniteRecurring

InfiniteRecurring: number

SPECS

The pricing phase repeats for every billing period until the subscription is canceled.

Since

Lens Scripting Version 377


NonRecurring

NonRecurring: number

SPECS

The pricing phase is charged once and does not repeat.

Since

Lens Scripting Version 377