SwishTransactionMetadata
SwishTransactionMetadata
- Full name:
\Onslip360\API\SwishTransactionMetadata
- Parent class:
\Onslip360\Onslip360Object
Properties
amount
public float $amount
currencyCode
public string $currencyCode
status
public \Onslip360\API\SwishTransaction\Status $status
swishTransaction
public int $swishTransaction
transactionDate
public string $transactionDate
type
public \Onslip360\API\SwishTransaction\Type $type
customer
public string|null $customer
transactionId
public string|null $transactionId
Methods
__construct
public __construct(float $amount, string $currencyCode, \Onslip360\API\SwishTransaction\Status $status, int $swishTransaction, string $transactionDate, \Onslip360\API\SwishTransaction\Type $type, string|null $customer = null, string|null $transactionId = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$amount | float | |
$currencyCode | string | |
$status | \Onslip360\API\SwishTransaction\Status | |
$swishTransaction | int | |
$transactionDate | string | |
$type | \Onslip360\API\SwishTransaction\Type | |
$customer | string|null | |
$transactionId | string|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05