SEP31FeeDetailsDetails
in package
Individual fee component within a cross-border payment transaction fee breakdown.
This class represents a single fee item within the detailed fee structure, such as ACH fees, conciliation fees, or service fees. Multiple instances of this class combine to form the complete fee details.
Tags
Table of Contents
Properties
- $amount : string
- $description : string|null
- $name : string
Methods
- __construct() : mixed
- fromJson() : SEP31FeeDetailsDetails
- Constructs a new instance of SEP31FeeDetailsDetails by using the given data.
Properties
$amount
public
string
$amount
$description
public
string|null
$description
= null
$name
public
string
$name
Methods
__construct()
public
__construct(string $name, string $amount[, string|null $description = null ]) : mixed
Parameters
- $name : string
-
The name of the fee (e.g., ACH fee, Brazilian conciliation fee, Service fee).
- $amount : string
-
The amount of asset applied. If fee_details.details is provided, sum(fee_details.details.amount) should equal fee_details.total.
- $description : string|null = null
-
Optional text describing the fee.
fromJson()
Constructs a new instance of SEP31FeeDetailsDetails by using the given data.
public
static fromJson(array<string|int, mixed> $json) : SEP31FeeDetailsDetails
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
SEP31FeeDetailsDetails —the object containing the parsed data.