Ensure customer (Stripe)
Create or reuse the Stripe Customer associated with an Ormuz company or contact.
Vue d’ensemble
Objectif
Ensures that a company or contact has a reusable Stripe Customer without exposing a Stripe identifier as process configuration data.
The node relies on provider mappings to reread an existing Customer. It creates the Customer and its mapping only when no association exists.
Quand l’utiliser
- Before creating bank-transfer instructions.
- Before collecting a SEPA mandate.
- When a journey must durably attach an Ormuz object to Stripe.
Parameters 2
extension_config_id
Active Stripe configuration used for the provider call. Merchant remains derived from process context.
subject
Subject. Accepte
platform.company ou platform.contact.Outputs 3
stripe_customer
Typed Stripe Customer carrying the reusable provider identity associated with an Ormuz company or contact.
created
Whether this execution created a new Stripe object or reused the one already correlated.
extension_object_mapping
Durable mapping between the produced Stripe object and the Ormuz object to which it is attached.
Behavior
Validate the subject
Accepts a persisted company or contact and extracts its identifier.
Look for the mapping
Looks for a Customer mapping for the active Stripe configuration and rejects ambiguous associations.
Create when needed
Creates the Customer with Ormuz metadata and a stable idempotency key, then persists the provider mapping.
Process example
Exemple de placement de `stripe.ensure_customer` dans un process avec des bindings typés.