Type: "Lifecycle Target"

Introduction

A Lifecycle Target is an opaque table of methods to give access to the underlying object (bucket, wallet, or subscription) that a lifecycle targets.

This object is used to give scripts access to the lifecycle target inside a lifecycle action being processed.

API Methods

.is_bucket

Returns true if the holder of the lifecycle is a wallet bucket.

.is_wallet

Returns true if the holder of the lifecycle is a wallet.

.is_subscription

Returns true if the holder of the lifecycle is a subscription to a service.

.as_bucket

Returns a table/object that represents a bucket, or nil if this lifecycle target does not represent a bucket.

.as_wallet

Returns a table/object that represents a wallet, or nil if this lifecycle target does not represent a wallet.

.as_subscription

Returns a table/object that represents a subscription to a service, or nil if this lifecycle target does not represent a subscription to a service.