SEP38BuyDeliveryMethod
in package
Delivery method for receiving an off-chain asset from an anchor via SEP-38.
This class describes a method by which an anchor can deliver an off-chain asset to a user, such as bank transfer, mobile money, or cash pickup.
Tags
Table of Contents
Properties
- $description : string
- $name : string
Methods
- __construct() : mixed
- fromJson() : SEP38BuyDeliveryMethod
- Constructs a new instance of SEP38BuyDeliveryMethod by using the given data.
Properties
$description
public
string
$description
$name
public
string
$name
Methods
__construct()
public
__construct(string $name, string $description) : mixed
Parameters
- $name : string
-
The identifier for the delivery method.
- $description : string
-
Human-readable description of the delivery method.
fromJson()
Constructs a new instance of SEP38BuyDeliveryMethod by using the given data.
public
static fromJson(array<string|int, mixed> $json) : SEP38BuyDeliveryMethod
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
SEP38BuyDeliveryMethod —the object containing the parsed data.