Stellar PHP SDK API Documentation

SEP31FeeDetailsDetails

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
see
https://github.com/stellar/stellar-protocol/blob/v3.1.0/ecosystem/sep-0031.md#fee-details-object-schema
see
SEP31FeeDetails

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

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.


        
On this page

Search results