SEP31FeeDetails
in package
Detailed fee breakdown for a cross-border payment transaction via SEP-31.
This class represents the comprehensive fee structure applied to a transaction, including the total fee amount, the asset in which fees are charged, and an optional breakdown of individual fee components.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- fromJson() : SEP31FeeDetails
- Constructs a new instance of SEP31FeeDetails by using the given data.
Properties
$asset
public
string
$asset
$details
public
array<string|int, mixed>|null
$details
= null
$total
public
string
$total
Methods
__construct()
public
__construct(string $total, string $asset[, array<string|int, SEP31FeeDetailsDetails>|null $details = null ]) : mixed
Parameters
- $total : string
-
The total amount of fee applied.
- $asset : string
-
The asset in which the fee is applied, represented through the Asset Identification Format.
- $details : array<string|int, SEP31FeeDetailsDetails>|null = null
-
Optional array of detailed fee components that sum to the total.
fromJson()
Constructs a new instance of SEP31FeeDetails by using the given data.
public
static fromJson(array<string|int, mixed> $json) : SEP31FeeDetails
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
SEP31FeeDetails —the object containing the parsed data.