CreateBillingAccount
Changed on:
18 Dec 2023
Overview
The creates customer’s Billing with billing reference.
Plugin Name | Order Reference Module |
---|---|
Namespace | [[account.id]].order |
The is the foundation for order-related implementations. It provides reference workflows for , and mixed baskets and those needed to build your own. Extensible by design, use this Module as a base to build a solution to your customers' needs.
UI Description
Creates customer's Billing Account with type {billingAccountType}, sends event {eventName} after billing account is created with billing account reference.
Accepts
- ORDER
- RETURN ORDER
Actions
- This rule produces an action that triggers a mutation which creates the Billing Account with an associated reference
Rule parameters
Parameter | Description |
eventName | name for outgoing . |
billingAccountType | BillingAccount type, default value = CUSTOMER. |
Event attributes
This does not directly identify any attributes.
Exceptions
This will throw an IllegalArgumentException
- if the
`retailerId/entityRef`
property is not provided - if the
`order/return order/customer link`
not found or invalid - if attempted against unsupported entities
All generated exceptions will be wrapped with RubixException: 422.
Configuration example
1{
2 "name": "<ACCOUNTID>.order.CreateBillingAccount",
3 "props": {
4 "eventName": "CheckMaxSplitLimitReached",
5 "billingAccountType": "CUSTOMER"
6 }
7}
Version History
v1.0.0
refers to