BankIDOrderDoneData
class BankIDOrderDoneData
Plugin domain outcome value object.
Returned by BankIDCaseInterface plugins when an order finishes (completed, failed, or canceled). Separates public data emitted to the JavaScript 'bankid' event from private data saved in Drupal's PrivateTempStore.
Methods
Constructs a BankIDOrderDoneData object.
Get JS client data.
Get the order reference.
Get the user ID.
Get temporary data that will persist.
Details
at line 30
__construct(array $clientData, string $orderRef, string|null $userId, array $orderDoneTempData = [])
Constructs a BankIDOrderDoneData object.
at line 46
array
getClientData()
Get JS client data.
Data to be emitted through the JS bankid event under event.details.data.
at line 56
string
getOrderRef()
Get the order reference.
at line 68
string|null
getUserId()
Get the user ID.
This is the user ID of the user that was linked to the order, if any.
at line 84
array
getOrderDoneTempData()
Get temporary data that will persist.
Data will persist until removed automatically by the private temporary store.
This data can be used to store additional information related to the order that is not part of the client data or user ID.