PaymentCard
in package
uses
Immutable
Read onlyYes
FinalYes
Payment card information (BG-18). Only the last 4 to 6 digits of the card number may be stored.
Table of Contents
Properties
- $holderName : string|null
- $primaryAccountNumber : string
Methods
- __construct() : mixed
- with() : static
- Returns a copy with the given properties replaced.
Properties
$holderName
public
string|null
$holderName
= null
Attributes
- #[Bt]
- 'BT-88'
- #[Cardinality]
- '0..1'
- #[Cii]
- 'ram:ApplicableTradeSettlementFinancialCard/ram:CardholderName'
- #[Ubl]
- 'cac:CardAccount/cbc:HolderName'
$primaryAccountNumber
public
string
$primaryAccountNumber
Attributes
- #[Bt]
- 'BT-87'
- #[Cardinality]
- '1'
- #[Cii]
- 'ram:ApplicableTradeSettlementFinancialCard/ram:ID'
- #[Ubl]
- 'cac:CardAccount/cbc:PrimaryAccountNumberID'
Methods
__construct()
public
__construct(string $primaryAccountNumber[, string|null $holderName = null ]) : mixed
Parameters
- $primaryAccountNumber : string
- $holderName : string|null = null
with()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>