FeeDetailsDetails
in package
Represents a detailed breakdown component of a fee.
Contains the name and amount for a specific fee component. Multiple instances can be used to provide a granular breakdown of total fees.
Tags
Table of Contents
Properties
- $amount : string
- $description : string|null
- $name : string
Methods
- __construct() : mixed
- fromJson() : FeeDetailsDetails
- Constructs a new instance of FeeDetailsDetails 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, for example ACH fee, Brazilian conciliation fee, Service fee, etc.
- $amount : string
-
The amount of asset applied. If fee_details.details is provided, sum(fee_details.details.amount) should be equals fee_details.total.
- $description : string|null = null
-
A text describing the fee.
fromJson()
Constructs a new instance of FeeDetailsDetails by using the given data.
public
static fromJson(array<string|int, mixed> $json) : FeeDetailsDetails
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
FeeDetailsDetails —the object containing the parsed data.